I am using the Hibernate Tools ant task to create DDL from annotated JPA objects. With sleep mode annotations, you can specify a foreign key using
@JoinColumn(name = "foo")
@org.hibernate.annotations.ForeignKey(name = "fk_foo")
Is there a clean JPA way to achieve the same?
source
share