Mike Becker (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=6321cb8...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMjg3MjliOTgw...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-15510?atlOrigin=eyJpIjoiMjg3Mj...
) HHH-15510 (
https://hibernate.atlassian.net/browse/HHH-15510?atlOrigin=eyJpIjoiMjg3Mj...
) JoinColumn annotation not recognized when entity is mapped via XML file (
https://hibernate.atlassian.net/browse/HHH-15510?atlOrigin=eyJpIjoiMjg3Mj...
)
Issue Type: Bug Affects Versions: 6.1.3 Assignee: Unassigned Components: hibernate-core
Created: 14/Sep/2022 06:51 AM Priority: Major Reporter: Mike Becker (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=6321cb8...
)
If an entity is mapped via an XML file, an ElementCollection cannot be annotated with
OnDelete because hibernate complains that JoinColumn is missing. But JoinColumn is
actually there.
The error message is
Unidirectional one-to-many associations annotated with @OnDelete must
define @JoinColumn
The following test case demonstrates this behavior. Change the TRIGGER_BUG flag to observe
how the test case is working when not using the XML file and how the bug occurs when using
the XML file.
TODO: insert test case once the issue ID is created
(
https://hibernate.atlassian.net/browse/HHH-15510#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15510#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#100207- sha1:c85b1ee )