Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *closed* an issue as *Won't Do*
Will not do.
I misunderstood how result transformers are used; generally, it seems they are used on raw
queries, created through org.hibernate.SharedSessionContract#createQuery(java.lang.String)
or org.hibernate.query.QueryProducer#createNativeQuery(java.lang.String) (without a
Class<R> resultClass parameter. There is no type-safety whatsoever.
What's more, result transformers have been deprecated since ORM 5.2.
Finally, Hibernate Search users can totally use composite projections to apply
transformations to the hits:
file:///home/yrodiere/tmp/build/hibernate-search-parent/ca07e8d9cfbcc7d183c488d4adb440b072105a34/documentation/target/dist/reference/en-US/html_single/index.html#search-dsl-projection-composite
So, result transformers are not useful in this case and will be removed soon anyway.
Hibernate Search (
https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiNTk3YmI2...
) / Task (
https://hibernate.atlassian.net/browse/HSEARCH-3093?atlOrigin=eyJpIjoiNTk...
) HSEARCH-3093 (
https://hibernate.atlassian.net/browse/HSEARCH-3093?atlOrigin=eyJpIjoiNTk...
) Search 6 groundwork - Restore ORM result transformer support (
https://hibernate.atlassian.net/browse/HSEARCH-3093?atlOrigin=eyJpIjoiNTk...
)
Change By: Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) Fix versions: 6.0.0.Beta-backlog Resolution: Won't Do Status: In Progress Closed
(
https://hibernate.atlassian.net/browse/HSEARCH-3093#add-comment?atlOrigin...
) Add Comment (
https://hibernate.atlassian.net/browse/HSEARCH-3093#add-comment?atlOrigin...
)
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#100134- sha1:0043a36 )