[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5447) LazyInitializationException when "ordered_inserts=true"
Israel Rios (JIRA)
noreply at atlassian.com
Thu Aug 5 15:00:40 EDT 2010
LazyInitializationException when "ordered_inserts=true"
-------------------------------------------------------
Key: HHH-5447
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5447
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.5.4
Environment: SqlServer
Reporter: Israel Rios
When "hibernate.order_inserts = true" and there is an entity been inserted with uninitialized associations it can result in a LazyInitializationException. As I could debug it happens in ActionQueue.findBatchNumber when it tries to find the batch number for an association resulting in a call to the entity hashCode method.
Maybe you could check if the association is initialized before trying to compute its batch number.
--
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