[hibernate-issues] [JIRA] (HSEARCH-3896) Verify multiple loading with the DefaultProjectionHitMapper on the same query instance

Fabio Massimo Ercoli (JIRA) jira at hibernate.atlassian.net
Fri Apr 17 05:01:17 EDT 2020


Fabio Massimo Ercoli ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A097eae70-1c75-4c16-ab75-ab9600f8e584 ) *created* an issue

Hibernate Search ( https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiNzE3MDE2ZTIxYTUyNGViMjlhMTc2YWNjZGYxOTkwYzgiLCJwIjoiaiJ9 ) / Task ( https://hibernate.atlassian.net/browse/HSEARCH-3896?atlOrigin=eyJpIjoiNzE3MDE2ZTIxYTUyNGViMjlhMTc2YWNjZGYxOTkwYzgiLCJwIjoiaiJ9 ) HSEARCH-3896 ( https://hibernate.atlassian.net/browse/HSEARCH-3896?atlOrigin=eyJpIjoiNzE3MDE2ZTIxYTUyNGViMjlhMTc2YWNjZGYxOTkwYzgiLCJwIjoiaiJ9 ) Verify multiple loading with the DefaultProjectionHitMapper on the same query instance ( https://hibernate.atlassian.net/browse/HSEARCH-3896?atlOrigin=eyJpIjoiNzE3MDE2ZTIxYTUyNGViMjlhMTc2YWNjZGYxOTkwYzgiLCJwIjoiaiJ9 )

Issue Type: Task Affects Versions: 6.0.0.Beta6 Assignee: Unassigned Components: mapper-javabean, mapper-orm, mapper-pojo Created: 17/Apr/2020 02:01 AM Fix Versions: 6.0.0.Beta-backlog-high-priority Priority: Major Reporter: Fabio Massimo Ercoli ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A097eae70-1c75-4c16-ab75-ab9600f8e584 )

Trying to execute the same query instance, it seems that it carries some state from the previous executions.

We have probably to inspect the DefaultProjectionHitMapper behavior.
Probably it needs to be stateless or we need to change the method *.loading.context.spi.LoadingContext#getProjectionHitMapper into createProjectionHitMapper.

We need a test case for it maybe on *.mapper.orm.search.loading.AbstractSearchQueryEntityLoadingIT.

Having that working will allow us to reuse (to cache) the query instances within the same thread.

( https://hibernate.atlassian.net/browse/HSEARCH-3896#add-comment?atlOrigin=eyJpIjoiNzE3MDE2ZTIxYTUyNGViMjlhMTc2YWNjZGYxOTkwYzgiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HSEARCH-3896#add-comment?atlOrigin=eyJpIjoiNzE3MDE2ZTIxYTUyNGViMjlhMTc2YWNjZGYxOTkwYzgiLCJwIjoiaiJ9 )

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#100124- sha1:93e2dd3 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200417/f955a08c/attachment-0001.html 


More information about the hibernate-issues mailing list