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: bug in NH1.2 with OnFlushDirty and collection state?
PostPosted: Wed Oct 15, 2008 9:53 am 
Beginner
Beginner

Joined: Thu Nov 02, 2006 5:11 pm
Posts: 32
Location: Toronto
Hi,

I'm finding that when IInterceptor.OnFlushDirty is called, the previousState entry is identical to the currentState for collection properties, even though I have modified the collection. Has anyone encountered this before? It seems like a bug. I tried a quick search on the jira but didn't find anything. We're using NH1.2.

If this is in fact a bug in 1.2 and has since been fixed, are there other means to access the previous state of the collection? Upgrading to the latest version is not an option for us right now.

Thanks,
jon


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 15, 2008 1:31 pm 
Beginner
Beginner

Joined: Thu Nov 02, 2006 5:11 pm
Posts: 32
Location: Toronto
Ok, this is not a bug after all. The collection itself is treated as a reference, so modifying the content of the collection does not manifest in a difference between the currentState and previousState values.

So my real question is, how can I tell if a collection has been modified?


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.