Red Hat Bugzilla – Bug 1132207
[GSS](6.4.0)HHH-9389 Foreign key column name for table mapping @ElementCollection uses entity class name instead of specified entity name
Last modified: 2018-03-06 15:39:21 EST
https://hibernate.atlassian.net/browse/HHH-9389 Fixed for EAP 6.4.0.
Fixed by Hibernate 4.2.16.Final upgrade https://bugzilla.redhat.com/show_bug.cgi?id=1121629
verified on EAP 6.4.0.DR11 / Hibernate 4.2.16
This is very minor, but: @Entity(name="prod") public class Product will result in a computed foreign key (for the @ElementCollection table) with the suffix 'prod' rather than 'Product' (e.g. 'prod_id') should refer to "prefix", not "suffix", as in: @Entity(name="prod") public class Product will result in a computed foreign key (for the @ElementCollection table) with the prefix 'prod' rather than 'Product' (e.g. 'prod_id') I see this has already been made "VERIFIED" so didn't want to update the doc text itself.