Čedomir Igaly (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-16606 (
https://hibernate.atlassian.net/browse/HHH-16606?atlOrigin=eyJpIjoiMmQ3NT...
)
Re: ClassCastException retrieving byte[] from database (
https://hibernate.atlassian.net/browse/HHH-16606?atlOrigin=eyJpIjoiMmQ3NT...
)
Problem is more general, not limited to byte array (or LOB).
I’ve re-wrote your test case and created (draft) pull request 6679 (
https://github.com/hibernate/hibernate-orm/pull/6679 )
Cause of the problem is method
org.hibernate.query.sqm.internal.ConcreteSqmSelectQueryPlan#determineRowTransformer. It is
wrongly for and result of array type selecting RowTransformerArrayImpl. However, in case
like this one (when result is single array property) selected row transformer should be
RowTransformerSingularReturnImpl.
I hope that leter today I will be able to propose solution, or at least starting point to
solution.
(
https://hibernate.atlassian.net/browse/HHH-16606#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16606#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100225- sha1:85acc52 )