-
Sub-task
-
Resolution: Done
-
Major
-
None
-
None
-
-
Documented as Resolved Issue
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 ) );