[hibernate-issues] [JIRA] (HSEARCH-3093) Search 6 groundwork - Restore ORM result transformer support

Yoann Rodière (JIRA) jira at hibernate.atlassian.net
Thu Jul 23 10:23:03 EDT 2020


Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b ) *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=eyJpIjoiNTk3YmI2NTY4MDYyNGZkNmExNDZkZmU3YjhhYjZlZmIiLCJwIjoiaiJ9 ) / Task ( https://hibernate.atlassian.net/browse/HSEARCH-3093?atlOrigin=eyJpIjoiNTk3YmI2NTY4MDYyNGZkNmExNDZkZmU3YjhhYjZlZmIiLCJwIjoiaiJ9 ) HSEARCH-3093 ( https://hibernate.atlassian.net/browse/HSEARCH-3093?atlOrigin=eyJpIjoiNTk3YmI2NTY4MDYyNGZkNmExNDZkZmU3YjhhYjZlZmIiLCJwIjoiaiJ9 ) Search 6 groundwork - Restore ORM result transformer support ( https://hibernate.atlassian.net/browse/HSEARCH-3093?atlOrigin=eyJpIjoiNTk3YmI2NTY4MDYyNGZkNmExNDZkZmU3YjhhYjZlZmIiLCJwIjoiaiJ9 )

Change By: Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b ) 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=eyJpIjoiNTk3YmI2NTY4MDYyNGZkNmExNDZkZmU3YjhhYjZlZmIiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HSEARCH-3093#add-comment?atlOrigin=eyJpIjoiNTk3YmI2NTY4MDYyNGZkNmExNDZkZmU3YjhhYjZlZmIiLCJwIjoiaiJ9 )

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.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100134- sha1:0043a36 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200723/9980614e/attachment.html 


More information about the hibernate-issues mailing list