[hibernate-issues] [Hibernate-JIRA] Commented: (EJB-314) Duplicate object in persistent bag - regression in 3.3.1 EM
Vincent Sevel (JIRA)
noreply at atlassian.com
Mon Sep 17 03:35:14 EDT 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/EJB-314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_28111 ]
Vincent Sevel commented on EJB-314:
-----------------------------------
You have probably figured it out, the test case is contained into mini_test_case.txt.
> 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, mini_test_case.txt, 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