My POJO classes are existing, and based on the data model. I can't change this field from a java.util.Date to anything else. But I *do* need to marshall the field as an "xs:date", not "xs:datetime". Just wondering if there's an easy way to do this...
-Steve On Thu, May 28, 2009 at 2:39 AM, Werner Guttmann <[email protected]>wrote: > Hi Steve, > > did you generate Java classes from the XML schema(s), or are you simply > trying to map a POJO that is already existing ? > > Regards > Werner > > Steve Kingsland wrote: > > Hi, > > > > I’m trying to marshal a POJO, which has a java.util.Date property. The > > schema element that I’m marshalling to is of type “xs:date”, NOT > > “xs:datetime”. How do I map this? > > > > Specifically, I want the date formatted as “2009-05-26”, not > > “2009-05-26T11:12:17.189-04:00”. Do I have to write a custom field > handler > > to do this? Or is there a way to accomplish this within the xml mapping? > > > > -Steve > > > > > > > > The electronic mail message you have received and any files transmitted > with > > it are confidential and solely for the intended addressee(s)’s attention. > Do > > not divulge, copy, forward, or use the contents, attachments, or > information > > without permission of Fannie Mae. Information contained in this message > is > > provided solely for the purpose stated in the message or its > attachment(s) > > and must not be disclosed to any third party or used for any other > purpose > > without consent of Fannie Mae. If you have received this message and/or > any > > files transmitted with it in error, please delete them from your system, > > destroy any hard copies of them, and contact the sender. > > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > >

