-->
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: store date in user defined format in db through hibernate
PostPosted: Tue Aug 02, 2011 4:50 am 
Newbie

Joined: Tue Aug 02, 2011 3:27 am
Posts: 1
Hi All
I am new to hibernate. I am accepting date in dd/mm/yyyy format, but mysql stores it in yyyy/mm/dd format. In hibernate the object is stored as it is. I dont know how to handle this, as I have to accept dates in dd/mm/yyyy format and need to store in db in yyyy/mm/dd. Shall i use simple query.createQuery("Actually query string") and then execute. Or is there any other approach too. Please give some pointers atleast.


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.