Brett Meyer commented on Bug HHH-7629

Ricardo Martinelli de Oliveira, I went through some of the code and test cases. Attached (hhh7629.zip) is a very simplified test, taken and modified from the customer's source. Hhh7629Test.java is the main test runner.

The test passes for me, provided that getAssetVersions() is called within an open session and transaction. I debugged and stepped through it and confirmed that getAssetVersions() passes DmHelper a PersistentBag (a PersistentCollection). The call to forceInitialization() works as expected.

Can you have the customer take a look at the test runner and see what may be different within his sequences? The actual app is huge and I'm not sure exactly what context this is being used.

Also mention that his DmHelper essentially duplicates Hibernate#initialize – he may just want to use that.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira