[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5201?page=c...
]
Guy Loewy commented on HHH-5201:
--------------------------------
You may be right and this issue may be the result of the issue you described in HHH-4803.
The reason I'm not 100% sure, is that within a single session transaction while in
debug mode I see that the object's handler (JavaassistLazyInitializer) target has the
referenced object value populated while the proxy object has null and requesting for the
value from the proxy bean returns the null value instead of the real value.
Proxy objects can't fetch lazy loaded referenced objects
--------------------------------------------------------
Key: HHH-5201
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5201
Project: Hibernate Core
Issue Type: Bug
Affects Versions: 3.5.1
Environment: JBoss 5.1, Windows, hsqldb/oracle/db2
Reporter: Guy Loewy
Priority: Blocker
Upgrading from v3.3.2 to v3.5.1 we encountered issues of "missing" data coming
from the database.
After analyzing the issues, it seems that the data is in the database and also available
in the actual beans, but not in the proxy objects.
Trying to read the data from the proxy returns a null value and the only work around we
found was to do a separate hibernate query that forces the lazy loaded referenced object
to load, in order to fix that issue with the proxy object.
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira