RE: [xstream-user] Using a Converter that will handle null values

2012-02-07 Thread John Fereira
2012 5:23 AM > To: user@xstream.codehaus.org > Subject: Re: [xstream-user] Using a Converter that will handle null > values > > Hi, John > This sample using calendar works fine to date converter: > http://pastebin.com/bEfk3aZy > > Using reference in your bea

Re: [xstream-user] Using a Converter that will handle null values

2012-02-07 Thread Jairo de Almeida
Hi, John This sample using calendar works fine to date converter: http://pastebin.com/bEfk3aZy Using reference in your beans with this annotation @XStreamAlias("date") @XStreamConverter(SingleValueCalendarConverter.class) private Calendar date; Jairo. 2012/2/6 John Ferei

[xstream-user] Using a Converter that will handle null values

2012-02-06 Thread John Fereira
I have been using XStream for quite a while without a hitch but recently was presented with a use case that I'm not sure how to resolve. Essentially I have an Hours object that represents the opening and closing hours of a location. The actual open/close fields are "Time" objects that uses a