Bug 446 : Missing support for @PrimaryKeyJoinColumn/@PrimaryKeyJoinColumns
Priority 
Medium
Reported Version 
 
Logged By 
cj
Status 
Fixed
Fixed Version 
github
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
20/11/2013
Updated 
20/11/2013
Type 
Bug
 
Attachments 
No attachments

If a field is annotated by @PrimaryKeyJoinColumn or @PrimaryKeyJoinColumns, this information is ignored by Ebean. The field is handled as a field without any annotations, the DDL does not contain information about the specified primary key and foreign key, the created columns is nullable.

My workaround is to use @JoinColumn and @Id but if JPA provides such a feature, it would be nice to use it.

 
woResponse

Upload a file