[hibernate-issues] [JIRA] (HHH-11280) Proxy Narrowing (HHH-9071) breaks polymorphic query

Christian Beikov (JIRA) jira at hibernate.atlassian.net
Tue Jun 30 04:17:21 EDT 2020


Christian Beikov ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A0222998d-a0c8-4789-91ec-6a92d10dfb9a ) *commented* on HHH-11280 ( https://hibernate.atlassian.net/browse/HHH-11280?atlOrigin=eyJpIjoiN2NjZjM1ZmEzMmQ0NGJiMTkyZTViMjNmNjc2MGM0OWQiLCJwIjoiaiJ9 )

Re: Proxy Narrowing (HHH-9071) breaks polymorphic query ( https://hibernate.atlassian.net/browse/HHH-11280?atlOrigin=eyJpIjoiN2NjZjM1ZmEzMmQ0NGJiMTkyZTViMjNmNjc2MGM0OWQiLCJwIjoiaiJ9 )

I guess a workaround could be to join fetch the association or to load the object by id after removing the proxy from the persistence context with detach.

( https://hibernate.atlassian.net/browse/HHH-11280#add-comment?atlOrigin=eyJpIjoiN2NjZjM1ZmEzMmQ0NGJiMTkyZTViMjNmNjc2MGM0OWQiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-11280#add-comment?atlOrigin=eyJpIjoiN2NjZjM1ZmEzMmQ0NGJiMTkyZTViMjNmNjc2MGM0OWQiLCJwIjoiaiJ9 )

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#100130- sha1:febe453 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200630/3414699c/attachment.html 


More information about the hibernate-issues mailing list