[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3088) Collection "remove" events don't contain removed collection when detached entity is updated with a null collection
Gail Badner (JIRA)
noreply at atlassian.com
Mon Jan 28 18:39:55 EST 2008
Collection "remove" events don't contain removed collection when detached entity is updated with a null collection
------------------------------------------------------------------------------------------------------------------
Key: HHH-3088
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3088
Project: Hibernate3
Issue Type: Bug
Components: core
Reporter: Gail Badner
Assignee: Gail Badner
When a detached entity is updated with a null collection using Session.update(), the collection is deleted without being loaded. For this reason, pre- and post- collection-remove events contain a null collection, instead of the collection that was removed.
A "FailureExpected" test case was added to org.hibernate.test.event.collection.BrokenCollectionEventTest, testUpdateDetachedParentNoChildrenToNullFailureExpected, which fails because the collection in the pre- and post-collection-remove events are expected to contain the collection being removed.
Another test case, testUpdateDetachedParentOneChildToNullFailureExpected, is commented out since it fails for the same reason.
When this is fixed, both test case should be moved to org.hibernate.test.event.collection.AbstractCollectionEventTest.
--
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/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list