[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3446) In bidirectional remove element from detached collection and merge it will not update the many side
Avihai Marchiano (JIRA)
noreply at atlassian.com
Sun Aug 24 06:32:50 EDT 2008
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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list