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 |