Description of problem: The table name computed for an @ElementCollection of @Embeddable uses the entity name instead of entity table name Version-Release number of selected component (if applicable): Hibernate core 4.2 and later How reproducible: Consistently Steps to Reproduce: 1. Provide a table name for a entity which differs from the entity name: @Entity @Table(name = "prod") public class Product { ... } 2. Add collection of embeddable to the above entity @ElementCollection(fetch = FetchType.EAGER) private Set<Part> parts = new TreeSet<Part>(); Actual results: Hibernate 4 computes the join table name as Product_parts Expected results: The table name should be prod_parts Additional info: - Hibernate 3 (which used @CollectionOfElements rather than @ElementCollection) computed the join table name as prod_parts - This may be the same as https://hibernate.atlassian.net/browse/HHH-5417
Created attachment 913499 [details] Maven based testcase
Corrected doc text.
Yes, please do. Thanks.
I don't think HHH-5417 is accurate any more. I've created a new Jira issue to reflect the current behavior: https://hibernate.atlassian.net/browse/HHH-9280
Based on this comment in Bug 1119658: I noticed that two bugzillas representing the same issue are now in the release notes: 1114699 and 1117447 represent the same issue, but are targeted for a different EAP version. One of them should be removed from the release notes. This one is targeted for 6.4, so removing the requires_doc_text flag on this bug.
Fixed for EAP 6.4.0
HHH-9280 was reverted by HHH-9327. Instead this is fixed by https://hibernate.atlassian.net/browse/HHH-9387 .
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