]
Gail Badner updated HHH-5425:
-----------------------------
Fix Version/s: 3.5.5
PropertyAccessException when caching results from a Query with a
ResultTransformer that as 1 value per row
----------------------------------------------------------------------------------------------------------
Key: HHH-5425
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5425
Project: Hibernate Core
Issue Type: Bug
Components: caching (L2)
Affects Versions: 3.5.4, 3.6.0.Beta1
Reporter: Gail Badner
Assignee: Gail Badner
Fix For: 3.6.0.Beta2, 3.5.5
PropertyAccessException is thrown when all of the following are true:
- Query has a ResultTransformer
- results are cached before being transformed
- each result has a single value
This is reproduced by:
- HqlQueryCachePutResultTransformerTest.testOneSelectNewListFailureExpected(), which
has:
s.createQuery( "select new org.hibernate.test.querycache.StudentDTO(s.name) from
Student s order by st.studentNumber" );
- HqlQueryCachePutResultTransformerTesttestAliasToBeanDtoOneArgListFailureExpected(),
which has:
s.createQuery( "select st.name as studentName from Student st order by
st.studentNumber" )
.setResultTransformer( Transformers.aliasToBean( StudentDTO.class ) );
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: