-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: XML date generation
PostPosted: Mon Dec 12, 2005 7:34 am 
Newbie

Joined: Wed Sep 28, 2005 11:07 am
Posts: 4
Location: Imola, Italy
Hi,

I use Hibernate 3.0.5.
I read a timestamp data type from the db.

By session.getSession(EntityMode.DOM4J) I have a xml data rappresentation.

When I generate the xml file the date rappresentation is like this:

<mydate>2005-09-12 00:00:00</mydate>;

this isn't a right XML DateTime data type.

By debug I have seen that the internal rappresentation is similar.


The right XML rappresentation is:

<mydate>2005-09-12T00:00:00</mydate>;

Thank you for help

Stefano


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.