[ 
https://issues.apache.org/jira/browse/OPENJPA-2564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Uwe Claussen updated OPENJPA-2564:
----------------------------------
    Description: 
The PersistenceUtil.isLoaded() returns false for an attribute which has been 
defined as FetchType.EAGER although the attribute has been sucessfully accessed 
and printed out before.  

We detected this while integrating JSR-303 Bean Validation. Everthing worked 
fine with the exception of the SigningPackage entity. For this during the 
pre-update validation the TraversableResolver gets always an isLoaded = false 
from the PersistenceUtil for the 'owner' attribute, which is defined as 
FetchType.EAGER. This leads to the situation that no validation is performed at 
all. The test case shows that the owner can be accessed but the utility say not 
loaded afterwards. This is strange.

Please let me know if you need more information.

  was:
The PersistenceUtil.isLoaded() returns false for an attribute which has been 
defined as FetchType.EAGER although the attribute has been sucessfully accessed 
and printed out before.  

We detected this while integrating JSR-303 Bean Validation. Everthing worked 
fine with the exception of the SigningPackage entity.


> PersistenceUtil.isLoaded() returns false for fetched entity 
> ------------------------------------------------------------
>
>                 Key: OPENJPA-2564
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2564
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jpa
>    Affects Versions: 2.3.0
>         Environment: Windows Professional 7 SP1 with Eclipse Luna Service 
> Release 1 (4.4.1)
>            Reporter: Uwe Claussen
>         Attachments: Entities.zip, PersistenceUtilTest.java, 
> PersistenceUtilTest.log, persistence.xml
>
>
> The PersistenceUtil.isLoaded() returns false for an attribute which has been 
> defined as FetchType.EAGER although the attribute has been sucessfully 
> accessed and printed out before.  
> We detected this while integrating JSR-303 Bean Validation. Everthing worked 
> fine with the exception of the SigningPackage entity. For this during the 
> pre-update validation the TraversableResolver gets always an isLoaded = false 
> from the PersistenceUtil for the 'owner' attribute, which is defined as 
> FetchType.EAGER. This leads to the situation that no validation is performed 
> at all. The test case shows that the owner can be accessed but the utility 
> say not loaded afterwards. This is strange.
> Please let me know if you need more information.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to