A User belongs to an Organization, and an Organization has many users. class User { @ManyToOne
}
MS SQL SERVERA User belongs to an Organization, and an Organization has many users. class User { @ManyToOne Organization organization; ....}
class Organization { ....}
Ebean generates two SQL scripts, create.sql and drop.sqlFor the create.sql, create table organization first, create table user, and then add foreign key. It is running fine. But for the drop.sql, drop table organization, and then drop table user. It failed because of foreign key constraint.
is it far from fix?