[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3683) Embedded classes not taken into account when order_inserts is enabled

Dave Stephan (JIRA) noreply at atlassian.com
Mon Jan 5 18:04:38 EST 2009


Embedded classes not taken into account when order_inserts is enabled
---------------------------------------------------------------------

                 Key: HHH-3683
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3683
             Project: Hibernate Core
          Issue Type: Bug
          Components: core
    Affects Versions: 3.2.4.sp1
            Reporter: Dave Stephan
         Attachments: EmbeddedClassTest.java

It seems that Embedded classes are not being taken into account when batch insert statements are ordered. 

In the test case for example, when the insert statements are ordered (org.hibernate.engine.ActionQueue.sortInsertActions), the "state" of the Car EntityInsertAction is the (Embedded)Registration object, but the checkAction instance ,that should be indicating that there is a FK dependency, is of course, Driver. So the Car insert, which has a FK to the Driver insert, is ordered to execute before the Driver insert. 

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