Bug 392 : DDL Generation not correct for MS SQL SERVER
Priority 
High
Reported Version 
 
Logged By 
fielding
Status 
Fixed
Fixed Version 
github
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
10/04/2012
Updated 
10/04/2012
Type 
Bug
 
Attachments 
No attachments

A User belongs to an Organization, and an Organization has many users.
class User {
@ManyToOne

}

 
fielding 10 Apr 12:55
description

MS SQL SERVER
A 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.sql
For 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.

ventil 28 May 12:38
fix date

is it far from fix?

woResponse

Upload a file