[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-1572) Criteria.setEnableCache(true).setResultTransformer(toNonObjectOrObjectArrayTransformer) breaks

Gail Badner (JIRA) noreply at atlassian.com
Thu Oct 7 14:56:57 EDT 2010


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gail Badner resolved HHH-1572.
------------------------------

      Assignee: Gail Badner
    Resolution: Duplicate

> Criteria.setEnableCache(true).setResultTransformer(toNonObjectOrObjectArrayTransformer) breaks
> ----------------------------------------------------------------------------------------------
>
>                 Key: HHH-1572
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1572
>             Project: Hibernate Core
>          Issue Type: Bug
>    Affects Versions: 3.1, 3.2.0.alpha1
>            Reporter: Max Rydahl Andersen
>            Assignee: Gail Badner
>
> Criteria criteria = s.createCriteria(Enrolment.class)
> 				.createAlias("student", "s")
> 				.createAlias("course", "c")
> 				.add( Restrictions.isNotEmpty("s.enrolments") )
> 				.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP)
> 				.setCacheable(true);
> 				
> 				list = criteria.list();
> (and query caching is enabled)
> results in hibernate trying to interpret the resulting hashmap as an Entity thus throwing PropertyAccessException.

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