-->
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.  [ 2 posts ] 
Author Message
 Post subject: inserting 24 hours format datetime into 12 hours dateformat
PostPosted: Wed Jul 10, 2013 3:45 am 
Newbie

Joined: Sun Jun 30, 2013 9:57 am
Posts: 2
hi to all,

i got problem while inserting the datetime into oracle.
In oracle the column is in format of timestamp.

here problem is in oracle, the column is 12 hours format like yyyy/mm/dd:hh:mi:ssam

But i want insert 24 hours formate like YYYY/MM/DD HH24:MI:SS through hibernate/jpa annotations.

I am trying with YYYY/MM/DD HH24:MI:SS.But date has inserted like yyyy/mm/dd:hh:mi:ssam.
I had tried with @temporal(temporaltype.timestamp)

can any one give me suggisions upon this one please.

thanks
Amar


Top
 Profile  
 
 Post subject: Re: inserting 24 hours format datetime into 12 hours dateformat
PostPosted: Thu Jul 11, 2013 1:33 am 
Newbie

Joined: Sun Jun 30, 2013 9:57 am
Posts: 2
please help me on this scenario.

I googled and tried also. but i could not resolved this issue.

Thanks
Amar


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

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.