This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | derived/dependent identities not mapped correctly | ||
---|---|---|---|
Product: | javaee | Reporter: | err <err> |
Component: | Persistence | Assignee: | Sergey Petrov <sj-nb> |
Status: | NEW --- | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Attachments: | ERD showing relationship at issue |
Description
err
2009-09-30 05:36:24 UTC
Created attachment 88561 [details]
ERD showing relationship at issue
looks like enhancement of feature for better support new features from jpa 2.0, it's closely correlate with initial plan for 6.8, but it seems it will not be implemented in 6.8. > > Note in the JPA 1.0 release this should be mapped with @PrimaryKeyJoinColumns, > > @MappedById is now the preferred mechanism > enhancement of feature for better support new features from jpa 2.0 Looks like this was an issue with the JPA 1.0 support as well; since there is a mapping specifically for "primary key column that is used as a foreign key to join to another table". However, I understand that there probably is not time to get it into 6.8; I'm just really glad I found it, it was driving me nuts not being able to specify this in the mappings. also if we are talking about derived identifiers, it seems this area isn't final yet in jpa 2.0 specification. |