mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-10-21 04:59:40 +00:00
CI Testing - ParentQueryTest cascade on parent.data
This commit is contained in:
@@ -21,9 +21,10 @@ public class ParentQueryTest extends BaseTestCase {
|
||||
@Before
|
||||
public void clearDb() {
|
||||
Ebean.deleteAll(Ebean.find(Data.class).findList());
|
||||
Ebean.deleteAll(Ebean.find(Parent.class).findList());
|
||||
//@rob: this does not work as it does not clear the ManyToMany relations.
|
||||
//Ebean.find(Data.class).delete();
|
||||
Ebean.find(Parent.class).delete();
|
||||
// Ebean.find(Data.class).delete();
|
||||
// Ebean.find(Parent.class).delete();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -26,9 +26,10 @@ public class ParentRawSqlTest extends BaseTestCase {
|
||||
@Before
|
||||
public void clearDb() {
|
||||
Ebean.deleteAll(Ebean.find(Data.class).findList());
|
||||
Ebean.deleteAll(Ebean.find(Parent.class).findList());
|
||||
//@rob: this does not work as it does not clear the ManyToMany relations.
|
||||
//Ebean.find(Data.class).delete();
|
||||
Ebean.find(Parent.class).delete();
|
||||
// Ebean.find(Data.class).delete();
|
||||
// Ebean.find(Parent.class).delete();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user