hbm2ddl - How to avoid that Hibernate is creating Foreign Key constraints?
问题 Dear all I am using Hibernate with hbm2ddl. I don't like that for one relationship foreign key constraints get created. Unfortunately I could not achieve it so far. I tried it with Hibernate and JPA annotations, had no luck. Any hints? I am using Hibernate 4.3.1 and mysql 5.6 @Entity class Artikel { ... @OneToMany(fetch=FetchType.LAZY, mappedBy="artikel") @NotFound(action=NotFoundAction.IGNORE) private List<Bild> images; } import javax.persistence.Entity; import javax.persistence.FetchType;