-->
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: inherently updating a field on cascade save
PostPosted: Fri Nov 10, 2006 6:01 am 
Newbie

Joined: Wed Jan 25, 2006 3:47 am
Posts: 7
Hi,

We are developing an application that needs to keep track of some kind of versioning information on the records of some specific tables. All those tables contain a field called N_IDF, and we need this field to be set to some value whenever a record is inserted or updated.

At the moment, some tables that have this field (and therefore this requirement) are associated as Sets from other tables, in which we use cascade to save everything at once.

Our question is, is there a way to keep this cascade behaviour, and still manage to have the N_IDF field updated in associated tables? Or do we have to save all children by hand if we want to make sure N_IDF is updated for the children?

Thanks in advance,

Max


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.