Marco Belladelli (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=637b480...
) *commented* on HHH-16254 (
https://hibernate.atlassian.net/browse/HHH-16254?atlOrigin=eyJpIjoiOWZiOD...
)
Re: Session load by pk returns proxy in association when using "batch fetch
size", "cache", "fetch mode select", "single table
inheritance" (
https://hibernate.atlassian.net/browse/HHH-16254?atlOrigin=eyJpIjoiOWZiOD...
)
Hello Jones (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) , thanks for reporting the issue and providing a reproducer! Fetching entities when both
batching and cache are enabled was changed as part of
https://hibernate.atlassian.net/browse/HHH-15921 (
https://hibernate.atlassian.net/browse/HHH-15921 ). In you particular case, the proxy is
required to correctly handle eventual associations of the parent entity in the cache.
Can you explain why, in your experience, obtaining a proxy instead of the actual instance
is a problem?
(
https://hibernate.atlassian.net/browse/HHH-16254#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16254#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#100217- sha1:2199b34 )