-->
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: Same timestamp value used across the whole transaction
PostPosted: Wed Jul 19, 2006 7:56 am 
Newbie

Joined: Thu Feb 12, 2004 11:52 am
Posts: 6
Hibernate version: 3.1.3

Name and version of the database you are using: Oracle 10g

Hi,
I would like to ask if it is possible for Hibernate to use exactly the same timestamp value when saving or updating a hierarchy of objects during one Transaction.

It is required by our DB administrator that we have the same timestamp in all the object modified so that he can automatically handle data historization.

Currently, I'm thinking to implement this logic within the DAO, but I have to navigate the whole object tree, identify which objects have been changed during current transaction and manually set the timestamp property with the same value for all the instances.

I think this is not elegant (and I know you think the same ;-) ).

Has somebody any idea how can I implement the same logic nicer? I was thinking to use an Hibernate Interceptor for doing this... is it the correct approach? Any example for doing this?

thanks in advance,

Federico


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.