-->
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: update timestamp on saving
PostPosted: Mon Feb 28, 2005 12:35 pm 
Newbie

Joined: Mon Feb 28, 2005 11:23 am
Posts: 2
Hi there,

I would like to update a lastModifiedTimestamp column on saving.
Since I would like to use db generated timestamps
(in db2:
Code:
select current timestamp from sysibm.sysdummy1
)
not relying on JVM generated timestamps,
is there a (neat) way to let Hibernate take care of this?

I was thinking UserTypes/proper Mapping, in that area..

Thanks,
Horst


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 01, 2005 6:47 am 
Expert
Expert

Joined: Sat Oct 25, 2003 8:49 am
Posts: 490
Location: Vrhnika, Slovenia
What about 'formula' attribute on property?


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.