[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3171) Class with @IdClass gets lazy-loaded when "id" field accessed

Carl Allain (JIRA) noreply at atlassian.com
Mon Mar 10 13:25:33 EDT 2008


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_29744 ] 

Carl Allain commented on HHH-3171:
----------------------------------

This is why I re-created it under a higer priority level.

> Class with @IdClass gets lazy-loaded when "id" field accessed 
> --------------------------------------------------------------
>
>                 Key: HHH-3171
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3171
>             Project: Hibernate3
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.2.6
>         Environment: Postgres 8.2.5 (also with Oracle 10g)
>            Reporter: Carl Allain
>         Attachments: BugIdClassIds.java, CountrySubdivisionPdoWithEmbeddedId.java, CountrySubdivisionPdoWithIdClass.java, create_countrysubdivisionpdo.sql, insert_data_in_countrysubdivisionpdo.sql
>
>
> Getting id values from Hibernate Proxy cause unwanted lazy initialization when using composite key and IdClass annotation. Lazy initialization behavior should be the same as when using EmbeddedId annotation instead of IdClass since we're accessing fields marked with Id annotation and their value has been provided for the Hibernate Proxy creation.

-- 
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