[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-5425) PropertyAccessException when caching results from a Query with a ResultTransformer that as 1 value per row
Gail Badner (JIRA)
noreply at atlassian.com
Thu Jul 29 23:14:35 EDT 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5425?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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: 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