No collection create eventst when collection is set to null
-----------------------------------------------------------
Key: HHH-3087
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3087
Project: Hibernate3
Issue Type: Bug
Components: core
Reporter: Gail Badner
Assignee: Gail Badner
When an entity is saved or updated with a null collection, pre- and
post-collection-recreate events are not generated. These events are generated when saving
or updating an entity with an empty collection.
Two "FailureExpected" tests have been added to
org.hibernate.test.event.collection.BrokenCollectionEventTest:, which fail because the
test case expects pre- and post-collection-recreate events to be generated:
- testSaveParentNullChildrenFailureExpected: a parent entity with an empty collection is
saved with a null collection
- testUpdateParentNoChildrenToNullFailureExpected: a parent entity that has been persisted
with a non-null collection is updated with a null collection.
The following two tests have been also been added, but are commented out because they fail
for the same reason as testUpdateParentNoChildrenToNullFailureExpected:
- testUpdateParentOneChildToNullFailureExpected: a parent entity that has been persisted
with an non-empty collection is saved with a null collection
- testUpdateMergedParentOneChildToNullFailureExpected: a detached parent entity that has
been persisted with a non-empty collection is merged into a session with a null
collection
When this bug is fixed, all 4 tests 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