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.6.0.Beta1, 3.5.4
Reporter: Gail Badner
Assignee: Gail Badner
Fix For: 3.6.0.Beta2
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:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira