Steve Webber (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=63f359a...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiM2ZmNWUxMTE2...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16212?atlOrigin=eyJpIjoiM2ZmNW...
) HHH-16212 (
https://hibernate.atlassian.net/browse/HHH-16212?atlOrigin=eyJpIjoiM2ZmNW...
) UnknownTableReferenceException with one-to-many relationship mapped by another entity (
https://hibernate.atlassian.net/browse/HHH-16212?atlOrigin=eyJpIjoiM2ZmNW...
)
Issue Type: Bug Affects Versions: 6.1.7 Assignee: Unassigned Components: hibernate-core
Created: 21/Feb/2023 06:38 AM Environment: hibernate core 6.1.7.Final
java 17.0.6
H2 database 2.1.214
windows operating system Priority: Major Reporter: Steve Webber (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=63f359a...
)
Getting a UnknownTableReferenceException using hibernate-core 6.1.7.Final which I
didn't get using 5.6.15.Final.
Have 3 entities. Entity 1 has a one-to-many relationship on Entity 2, mapped by Entity 3.
When I try to select I get a UnknownTableReferenceException. Note that I get this
exception if I use FetchMode.SUBSELECT or FetchMode.JOIN but not if I use
FetchMode.SELECT.
See test case at:
https://github.com/s-webber/hibernate-test-case-orm-6-subselect-unknown-t... (
https://github.com/s-webber/hibernate-test-case-orm-6-subselect-unknown-t... )
(
https://hibernate.atlassian.net/browse/HHH-16212#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16212#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#100216- sha1:3fa9804 )