[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-5201) Proxy objects can't fetch lazy loaded referenced objects

Guy Loewy (JIRA) noreply at atlassian.com
Sat May 22 12:36:11 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=37248#action_37248 ] 

Guy Loewy commented on HHH-5201:
--------------------------------

Figured out the issue.
It has nothing to do with the fix for 3.5.2.
I still have the same issue, but I know why it is happening.

Due to an issue with Oracle's 10g dialect not handling text types correctly, I created, base on some info on the web, my own class that handles clob with Oracle's specific streaming API.
This seem to be the reason for the weird behavior. When switching back to text type, all other databases work fine and the proxy objects find the text value in the "real" object and lazy load them correctly.

Thanks for all the assistance,
Guy.

> 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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list