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