|
In favor of JPA 2.1, I use @javax.persistence.ForeignKey annotation to enable the foreignkey, but it says:
The annotation @ForeignKey is disallowed for this location
and I can't compile my code.
instead, the deprecate annotation "org.hibernate.annotations.ForeignKey" can work fine.
|