[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6484) Replacing an entity on a one-to-one delete-orphan association with a new instance does not delete the previous one

Mauricio Hiroshi Nagaoka (JIRA) noreply at atlassian.com
Mon Jul 25 23:54:15 EDT 2011


Replacing an entity on a one-to-one delete-orphan association with a new instance does not delete the previous one
------------------------------------------------------------------------------------------------------------------

                 Key: HHH-6484
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6484
             Project: Hibernate Core
          Issue Type: Bug
          Components: core
    Affects Versions: 3.6.6
            Reporter: Mauricio Hiroshi Nagaoka
         Attachments: hibernate-testsuite-3.6.6.Final.patch

On {{DeleteOneToOneOrphansTest}}, setting {{Employee.employeeInfo}} to a new {{EmployeeInfo}} instance (instead of setting it to {{null}}) doesn't trigger the deletion of the old {{employeeInfo}} raising a {{ConstraintViolationException}}.

Please refer to the attached test suite patch.

This is somewhat related to HHH-4726.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list