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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira