]
Vincent Sevel updated EJB-314:
------------------------------
Attachment: CustodianEty.java
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.2.1, 3.3.1.GA
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: CustodianEty.java, 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: