]
Carl Allain updated HHH-3171:
-----------------------------
Attachment: hibernate.cfg.xml
Here is the hibernate config file we used.
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,
hibernate.cfg.xml, 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: