From: <no...@at...> - 2005-07-23 20:43:15
|
The following issue has been updated: Updater: Christian Bauer (mailto:chr...@hi...) Date: Sat, 23 Jul 2005 3:42 PM Changes: Component changed to core --------------------------------------------------------------------- For a full history of the issue, see: http://opensource.atlassian.com/projects/hibernate/browse/HHH-785?page=history --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/browse/HHH-785 Here is an overview of the issue: --------------------------------------------------------------------- Key: HHH-785 Summary: Persistence through cascading should have higher precedence than orphan-delete Type: Improvement Status: Unassigned Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: Hibernate3 Components: core Versions: 3.1 beta 1 Assignee: Reporter: Christian Bauer Created: Sat, 23 Jul 2005 3:42 PM Updated: Sat, 23 Jul 2005 3:42 PM Description: A typical tree mapped using an adjacency list: <many-to-one name="parent" cascade="none"/> <set name="children" cascade="all, delete-orphan"/> A normal tree operation is moving a node: a.remove(b); c.add(b); This results in an exception, as Hibernate currently rates the delete-orphan as more important and warns that the node would become persistent again through cascading. However, this is the only way to implement relocation of a node in a tree without resorting to complex session coding. I argue that the "delete orphans" guarantee given in the mapping should not have precedence over the the actual non-orphaned persistent state in the Session. --------------------------------------------------------------------- JIRA INFORMATION: 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 If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |