-->
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: timestamp question in Hibernate 2.x
PostPosted: Fri Dec 04, 2009 10:19 am 
Newbie

Joined: Fri Dec 04, 2009 4:42 am
Posts: 5
Hi everyone,

I am using hibernate 2.x and could not get more detailed information on the docs for "timestamp" element. At Hibernate 3.x it has a attribute as "source" and we can say that value could be as "db", however at hibernate 2.x there is not any attribute like that.
If I put a mapping like :


Code:
<timestamp name="insertedTime" column="inserted"></timestamp>


what would I see at the table. A db time or JVM's time?
here is the timestamp reference doc


Code:
<timestamp
  column="timestamp_column" (1)
  name="propertyName" (2)
  access="field|property|ClassName" (3)
  unsaved-value="null|undefined" (4)
/>


also if I could not solve that problem how can I solve with triggers in hibernate 2.x, As I know there is not any attribute "generated" at 2.x
Regards,

_________________
----
Melih
melihbirim.com


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.