|
Jochen Wiedmann, actually, the annotation is correct here. Unlike org.hibernate.annotations.ForeignKey, javax.persistence.ForeignKey cannot be applied directly to a field, method, or class. Instead, it's provided purely as a nested annotation. Example:
@JoinColumn(name = "FOO_COL", foreignKey = @ForeignKey(name = "FOO_FK") )
|