Java Virtal

[ News ] rss

February 01, 2011

Mark Wielaard: New GPG key. Finally created a new GPG key using gnupg. The old one was a DSA/1024 bits one and 8 years old. The new one is a RSA/2048 bits one. I will use the new one in the future to sign any release tarballs I might create. pub 2048R/57816A6A 2011-01-29 Key f...

More »

February 01, 2011

Andrew Hughes: [SECURITY] IcedTea6 1.7.8, 1.8.5, 1.9.5 Released!. We are pleased to announce a new set of security releases, IcedTea6 1.7.8, IcedTea6 1.8.5 and IcedTea6 1.9.5. This update contains the following security updates: The IcedTea project provides a harness to build the source code from OpenJDK6 u...

More »

2021222324 2526

[ Archives News
for 'Java Technology' ]

home > news > java technology > betwixt the brackets

Betwixt the Brackets

.nbcomm {color: #969696} .nbchar {color: #ce7b00} .nbkeyword {color: #0000e6} So we need to convert objects into XML and back again, eg. to store some data in the database in XML format, because otherwise maybe we just gonna have too many tables and joins and what-not. Actually this is for a PNR, which is "Person Name Record" or something of that nature, as used in the travel industry for any booking eg. flights but also car hire, hotels, cruises etc. The other columns in the PNR table will be search terms for an agent to find a PNR, but otherwise all the gazillion details that passengers seem to require are stuffed into the XML, from meal preferences, seat preferences, who's got whose baby on their lap, and when was this baby born, not to mention various comments and remarks communicated betwixt the airline and the agents via this PNR. Having used XStream before - which i must say is really great - i thought, let's try getting in and amongst Betwixt, not least because most of our third-party jars are from the Apache behemoth. For a start, lets say we have an entity as follows. public class Traveler extends IdEntity { @Id @GeneratedValue(strategy = GenerationType.AUTO) Long id; String firstNames; String surname; String email; String telephone; @Enumerated(EnumType.STRING) Salutation salutation; @Temporal(TemporalType.DATE) Date dateOfBirth; ... } So we ...

Date: July, 16 2010

Others News

© website editor | icon font | bootstrap buttons | free icon maker | html slider