-->
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.  [ 3 posts ] 
Author Message
 Post subject: Need to Insert SYSTIMESTAMP in a Timestamp field.
PostPosted: Thu Apr 17, 2008 6:32 pm 
Newbie

Joined: Thu Apr 17, 2008 6:28 pm
Posts: 6
Hi All,

I need to populate a TimeStamp field with SYSTIMESTAMP. Do let me the know the best possible way. Is it possible thru mapping file.

eg.,

<property name="createTimestamp" type="timestamp" formula="(SELECT TO_DATE(SYSTIMESTAMP,'YYYY:MM:DD-HH24:MI:SS:FF4') FROM DUAL)" />


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 17, 2008 9:56 pm 
Newbie

Joined: Wed Apr 16, 2008 7:49 pm
Posts: 10
Formula columns used only for selects. It won't be used for inserts. You'll have to provide the value from java code or have the value populated with a trigger,

hth,
Sivec


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 18, 2008 9:29 am 
Newbie

Joined: Thu Apr 17, 2008 6:28 pm
Posts: 6
Thanks for help.
I ll try that.....


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.