[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3660) Allow for "on-delete" attribute on "one-to-one" mapping

Eric Sirianni (JIRA) noreply at atlassian.com
Tue Dec 16 11:40:39 EST 2008


Allow for "on-delete" attribute on "one-to-one" mapping
-------------------------------------------------------

                 Key: HHH-3660
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3660
             Project: Hibernate Core
          Issue Type: Improvement
          Components: core
    Affects Versions: 3.3.1
            Reporter: Eric Sirianni


Currently, specifying the attribute on-delete="cascade" in the <key> element within a collection mapping indicates to hibernate that the delete will be automatically cascaded within the database (as opposed to hibernate executing the delete itself).  In other words, the foreign key for the collection table was created with ON CASCADE DELETE behavior.

There is currently no way to specify the on-delete attribute for <one-to-one> mappings.  This means that hibernate will need to execute delete statements for the child end of a one-to-one association instead of letting the database do the work.  

Please enhance <one-to-one> mappings to have "on-delete" awareness.

-- 
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