Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HSEARCH-3896 (
https://hibernate.atlassian.net/browse/HSEARCH-3896?atlOrigin=eyJpIjoiNzd...
)
Re: Verify multiple loading with the DefaultProjectionHitMapper on the same query instance
(
https://hibernate.atlassian.net/browse/HSEARCH-3896?atlOrigin=eyJpIjoiNzd...
)
Good catch, thanks.
DefaultProjectionHitMapper can't be stateless because its purpose is to hold a mutable
list of references to load. We need to turn getProjectionHitMapper into a factory method,
or to make sure DefaultProjectionHitMapper clears it state after loading.
I think the first solution is more robust as it will work even if a search query fails
after having added references to the hit mapper but before loading entities.
(
https://hibernate.atlassian.net/browse/HSEARCH-3896#add-comment?atlOrigin...
) Add Comment (
https://hibernate.atlassian.net/browse/HSEARCH-3896#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#100124- sha1:93e2dd3 )