Gavin King (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-15737 (
https://hibernate.atlassian.net/browse/HHH-15737?atlOrigin=eyJpIjoiNmI4YT...
)
Re: Support for Inheritance and Bytecode Enchanced Lazy Loading (
https://hibernate.atlassian.net/browse/HHH-15737?atlOrigin=eyJpIjoiNmI4YT...
)
IMO, the real problem here is that
@ManyToOne(fetch=LAZY) @LazyToOne(NO_PROXY)
is a combination we just don’t support for polymorphic associations (and have never ever
supported).
The previous behavior was to ignore fetch=LAZY , and give priority to NO_PROXY which was,
well, better than the current behavior of ignoring NO_PROXY , since fetch is defines as a
hint.
But I think that what should actually happen here is that we should throw, with a clear
and helpful error message, since the mapping isn’t supported, and accepting it is
misleading.
(
https://hibernate.atlassian.net/browse/HHH-15737#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15737#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#100210- sha1:9b34d7c )