-->
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: Identifying changes made before/after saving
PostPosted: Sat Jul 07, 2007 3:00 am 
Newbie

Joined: Mon Apr 03, 2006 5:12 pm
Posts: 15
Location: Glasgow, Scotland
Is there any way to identify objects that have changed (e.g. are to be added, updated or deleted) when you are saving an object?

If I had a parent object which had a number of child objects, would I be able to tell which child objects had been changed when the parent object is saved?

Is this possible to do before the save and/or after and which would be most sensible to use?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 07, 2007 5:11 pm 
Newbie

Joined: Tue Jul 03, 2007 2:06 pm
Posts: 14
Location: Turkey, Ankara
http://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/manipulatingdata.html#manipulatingdata-interceptors
should contain the Interface Interceptor's which contain
[list=]findDirty
postFlush
preFlush
[/list]
which you may need.

_________________
it is what they understand from your sayings, not what u know.

Fatih Kucukpetek


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.