-->
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: Handling 'last update by' and 'last update timestamp'?
PostPosted: Fri Dec 02, 2005 12:08 pm 
Newbie

Joined: Fri Dec 02, 2005 11:33 am
Posts: 5
I've got columns for 'last update by' and 'last update timestamp' in many of my tables. The last update by is *not* the user logged into the database, it is the user logged into the web application.

I realize that, through code, I could constantly check values that are being updated in my pojos and set the fields manually when a user changes a value, and these adjustments would in turn be persisted to the database by hibernate.

But I'm wondering if there is some other method, as part of hibernate, that would be a better alternative.

Any suggestions?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 02, 2005 12:13 pm 
Newbie

Joined: Thu Apr 15, 2004 4:16 pm
Posts: 6
You could perhaps leverage http://www.hibernate.org/48.html.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 02, 2005 12:14 pm 
Newbie

Joined: Thu Apr 15, 2004 4:16 pm
Posts: 6
http://www.hibernate.org/48.html

Without the '.' this time :).


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.