From: <leg...@at...> - 2003-06-04 06:26:30
|
Message: The following issue has been closed. Resolver: Gavin King Date: Wed, 4 Jun 2003 1:25 AM Actually, this is all okay, it is a different check that finds the dirty collection reference. Tale a look at PersistentCollectionType.isDirty() I tested that version numbers are correctly incremented. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-119 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-119 Summary: Possible bug with versioning and collections Type: Bug Status: Closed Priority: Critical Resolution: REJECTED Project: Hibernate2 Components: core Assignee: Gavin King Reporter: Gavin King Created: Mon, 2 Jun 2003 7:08 PM Updated: Wed, 4 Jun 2003 1:25 AM Description: I ran into this problem when writing an audit interceptor based on our earlier discussions. Basically searchForDirtyCollections does not seem to return true when a collection reference has changed (i.e. the user set the collection to be a different collection from the one loaded). Looking at the code, searchForDirtyCollections just checks to see if the entry is dirty consequently when a collection is newly wrapped it does not appear dirty to that method. The upshot is that if the object is versioned and a collection reference is changed it will not update the version number. This is not major problem because users can always use addAll and clear to avoid changing the reference. Just thought you might like to know. Regards, Ali Ibrahim Vecna Technologies from: https://sourceforge.net/forum/forum.php?thread_id=877654&forum_id=128638 --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |