Florian Kern (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5ee102c...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiN2JhMjMzNTQz...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-14069?atlOrigin=eyJpIjoiN2JhMj...
) HHH-14069 (
https://hibernate.atlassian.net/browse/HHH-14069?atlOrigin=eyJpIjoiN2JhMj...
) LazyLoad with singleTable inheritance don't use discriminatorValue (
https://hibernate.atlassian.net/browse/HHH-14069?atlOrigin=eyJpIjoiN2JhMj...
)
Change By: Florian Kern (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5ee102c...
)
please see the attached test case.
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 secound second
collection triggerLazy load, there is a org.hibernate.WrongClassException thrown.
(
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 )