In bidirectional remove element from detached collection and merge it will not update the
many side
---------------------------------------------------------------------------------------------------
Key: HHH-3446
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3446
Project: Hibernate3
Issue Type: Bug
Components: core
Affects Versions: 3.2.6
Environment: Windows
Reporter: Avihai Marchiano
Attachments: persistence-deps.zip
In bidirectional when remove element from the collection (i also nullify the reference
from the many side ) the element reference wasnt nullify.
i have a detached collection (user has many permissions)
in detached i call to :
permission.user = null;
iterator.remove();
and then call to em.merge(user);
it dosnt nullify the FK in permission table.
if i remark the line - "iterator.remove();" then it will nullify the FK, but in
bi-directional you update both sides of the collection in order to be consistent.
attached a project.
--
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