-->
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: Updating question
PostPosted: Sun Apr 16, 2006 5:04 pm 
Regular
Regular

Joined: Tue Feb 07, 2006 4:27 pm
Posts: 69
My question is regarding tracking history.

Is there a way to ask NHibernate for a list of changes that
have been made to an object?

Would like to use this 'feature' to track history of the object(s).

Since NHibernate supports dynamic-update I assumed this logic
is built-in, but am not sure if it is accessible.

Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 16, 2006 7:57 pm 
Senior
Senior

Joined: Thu Aug 25, 2005 3:35 am
Posts: 160
the interceptor has a 'finddirty' method that should return the property indeces that have changed. Internally nh keeps track of these (as long as you are connected to a session) but I don't think there is an easy way to get that information out of the system. Look into that interceptor to find out.


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.