I am using the Hibernate Tools ant task to generate DDL from JPA annotated entities. With hibernate annotations you can name the foreign key using
@JoinColumn(name = "foo")
@org.hibernate.annotations.ForeignKey(name = "fk_foo")
Is there a pure JPA way of achiving the same?