[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-3683) Embedded classes not taken into account when order_inserts is enabled
Cody Lerum (JIRA)
noreply at atlassian.com
Mon Feb 1 19:21:29 EST 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cody Lerum updated HHH-3683:
----------------------------
Attachment: hhh-3683-exception.txt
I believe I am hitting this same issue. Attaching my stack trace (Hibernate 3.4GA)
I can work around this by setting <property name="hibernate.order_inserts" value="false"/> but that presents other issues.
> 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, hhh-3683-exception.txt
>
>
> 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