Florian Kern (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5ee102c...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMzZhYjg1Yjdm...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-14069?atlOrigin=eyJpIjoiMzZhYj...
) HHH-14069 (
https://hibernate.atlassian.net/browse/HHH-14069?atlOrigin=eyJpIjoiMzZhYj...
) LazyLoad with singleTable inheritance don't use discriminatorValue (
https://hibernate.atlassian.net/browse/HHH-14069?atlOrigin=eyJpIjoiMzZhYj...
)
Change By: Florian Kern (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5ee102c...
)
please see the attached test case.
Execute it via:
{noformat}mvn test{noformat}
With singleTable inheritance lazyLoad is triggered, without the discriminator value in the
SQL Statement. In consequence there are wrong mapped objects in the collection. In the
later, if the entityManager knows the wrong mapped object and the second collection
triggerLazy load, there is a org.hibernate.WrongClassException thrown.
Without LazyLoad and JoinFetch it works as expected.
(
https://hibernate.atlassian.net/browse/HHH-14069#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-14069#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#100128- sha1:14a4bff )