Bug 1132207
Summary: | [GSS](6.4.0)HHH-9389 Foreign key column name for table mapping @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: | unspecified | |||
Version: | 6.2.0 | CC: | gbadner, kkhan, msimka, smarlow | |
Target Milestone: | DR11 | |||
Target Release: | EAP 6.4.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: |
In previous releases of JBoss EAP 6, the name attribute for @Entity(name="...") is ignored in computing the prefix for foreign key columns used to join the entity table to tables mapping @ElementCollection properties
As a result, the computed foreign key prefix is the entity class name rather than the name supplied in the @Entity annotation
In this release, the @Entity annotation name property is used to compute the foreign key name prefix. For example, the ``@Entity(name="prod")` public class Product will result in a computed foreign key (for the @ElementCollection table) with the prefix 'prod' rather than 'Product'.
|
Story Points: | --- | |
Clone Of: | 1114699 | |||
: | 1132212 (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: | 1114699 | |||
Bug Blocks: | 1121629, 1132212 |
Comment 2
Gail Badner
2014-11-21 03:05:23 UTC
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. |