mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
ADD: failing testcase for dropping two or more related, but otherwise unreferenced tables
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
package misc.migration.v1_0;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Table(name = "drop_ref_one")
|
||||
public class DropRefOne {
|
||||
|
||||
@Id
|
||||
Integer id;
|
||||
|
||||
@ManyToOne(cascade = {})
|
||||
DropMain parent;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public DropMain getParent() {
|
||||
return parent;
|
||||
}
|
||||
|
||||
public void setParent(DropMain parent) {
|
||||
this.parent = parent;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user