[hibernate-issues] [Hibernate-JIRA] Created: (EJB-314) Duplicate object in persistent bag - regression in 3.3.1 EM
Vincent Sevel (JIRA)
noreply at atlassian.com
Wed Sep 12 03:48:14 EDT 2007
Duplicate object in persistent bag - regression in 3.3.1 EM
-----------------------------------------------------------
Key: EJB-314
URL: http://opensource.atlassian.com/projects/hibernate/browse/EJB-314
Project: Hibernate Entity Manager
Issue Type: Bug
Components: EntityManager
Affects Versions: 3.3.1.GA, 3.2.1
Environment: Hibernate version: 3.2.2
Hibernate annotations version: 3.3.0
Hibernate em version: 3.3.1
hsqldb 1.8.0
Reporter: Vincent Sevel
Attachments: sources.txt, test_code_between_open_close.txt
Doing a persist on a new object that has been added to an unitialized persistent bag, with lead to this collection containing 2 times the same new instance.
However, if the collection is forced to be initialized before the persist, then it behaves correctly.
This was working in 3.2.1, not anymore in 3.3.1.
Look at the method findOrCreateCustodianAccount in test_code_between_open_close.txt and the XXX comments.
--
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