Gavin King (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-16729 (
https://hibernate.atlassian.net/browse/HHH-16729?atlOrigin=eyJpIjoiNzU5ZT...
)
Re: Instantiate a proxy of the correct class for ManyToOne associated to an inheritance
hierarchy (
https://hibernate.atlassian.net/browse/HHH-16729?atlOrigin=eyJpIjoiNzU5ZT...
)
I mean if you want to just always load an association eagerly, that’s easy to do. I don’t
really know why you were using @Proxy(lazy=FALSE) for that!
You can use @ManyToOne(fetch=EAGER) to tell Hibernate to load eagerly and eliminate the
proxy, and then {{@Fetch(SELECT)}}if you want to use a separate select instead of a join.
And this is much better because it’s more granular.
(
https://hibernate.atlassian.net/browse/HHH-16729#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16729#add-comment?atlOrigin=ey...
)
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#100225- sha1:40c4da4 )