Bug 1114699
| Summary: | [GSS](6.4.0)HHH-9387 Join table name for @ElementCollection uses entity class name instead of specified entity name | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Stephen Fikes <sfikes> | ||||
| Component: | Hibernate | Assignee: | Gail Badner <gbadner> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Martin Simka <msimka> | ||||
| Severity: | urgent | Docs Contact: | |||||
| Priority: | urgent | ||||||
| Version: | 6.2.0 | CC: | cdewolf, dandread, gbadner, kkhan, msimka, smarlow | ||||
| Target Milestone: | DR11 | ||||||
| Target Release: | EAP 6.4.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Known Issue | |||||
| Doc Text: |
This release of JBoss EAP 6 carries a bug that in the Hibernate component that causes the table name computed for an @ElementCollection to use the entity class name instead of the specified entity name.
This issue is under investigation and is expected to be resolved in a future release of the product.
|
Story Points: | --- | ||||
| Clone Of: | |||||||
| : | 1117447 1132207 (view as bug list) | Environment: | |||||
| Last Closed: | Type: | Bug | |||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1117447, 1121629, 1132207, 1134738 | ||||||
| Attachments: |
|
||||||
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 |
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