[hibernate-issues] [Hibernate-JIRA] Updated: (HV-542) HibernateTraversableResolver does not correctly determine if an lazy property is initialized.
Hardy Ferentschik (JIRA)
noreply at atlassian.com
Mon Jan 30 12:27:10 EST 2012
[ http://opensource.atlassian.com/projects/hibernate/browse/HV-542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hardy Ferentschik updated HV-542:
---------------------------------
Description:
HibernateTraversableResolver is returning true in "isReachable" for lazy loaded properties that are not initliazed.
Line 115:
{code}
Hibernate.isPropertyInitialized( traversableObject, traversableProperty.getName() );
{code}
only checks "traversableObject" is a Direct reference to the Entity and not a proxy, and _Hibernate.isPropertyInitialized_ is only checking if it is an instance of HibernateProxy or "instrumented" to determine if it is initialized or not.
was:
HibernateTraversableResolver is returning true in "isReachable" for lazy loaded properties that are not initliazed.
Line 115:
Hibernate.isPropertyInitialized( traversableObject, traversableProperty.getName() );
only ch
"traversableObject" is a Direct reference to the Entity and not a proxy, and Hibernate.isPropertyInitialized is only checking if it is an instance of HibernateProxy or "instrumented" to determine if it is initialized or not.
> HibernateTraversableResolver does not correctly determine if an lazy property is initialized.
> ---------------------------------------------------------------------------------------------
>
> Key: HV-542
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-542
> Project: Hibernate Validator
> Issue Type: Bug
> Components: engine
> Affects Versions: 4.1.0.Final
> Environment: HV4.1F, HC3.6.7F, JPA2
> Reporter: Tim Heys
>
> HibernateTraversableResolver is returning true in "isReachable" for lazy loaded properties that are not initliazed.
> Line 115:
> {code}
> Hibernate.isPropertyInitialized( traversableObject, traversableProperty.getName() );
> {code}
> only checks "traversableObject" is a Direct reference to the Entity and not a proxy, and _Hibernate.isPropertyInitialized_ is only checking if it is an instance of HibernateProxy or "instrumented" to determine if it is initialized or not.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list