mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#335 - Remove deprecated method - delete(Collection<?> beans) ... migrate to deleteAll()
This commit is contained in:
@@ -488,11 +488,6 @@ public class TDSpiEbeanServer implements SpiEbeanServer {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public int delete(Collection<?> c) throws OptimisticLockException {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int delete(Class<?> beanType, Object id) {
|
||||
return 0;
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ import com.avaje.ebeaninternal.server.deploy.BeanPropertyAssocMany;
|
||||
public class TestOnCascadeDeleteChildrenWithCompositeKeys extends BaseTestCase {
|
||||
@Before public void before() {
|
||||
// remove all the User records first
|
||||
Ebean.delete(Ebean.find(User.class).findList());
|
||||
Ebean.deleteAll(Ebean.find(User.class).findList());
|
||||
|
||||
// insert 2 User records
|
||||
Ebean.save(new User(1L));
|
||||
|
||||
@@ -44,7 +44,7 @@ public class TestM2MDeleteWithCascade extends BaseTestCase {
|
||||
|
||||
Assert.assertEquals("roles not deleted", 2, rc);
|
||||
|
||||
Ebean.delete(roles);
|
||||
Ebean.deleteAll(roles);
|
||||
|
||||
rc = Ebean.find(MRole.class).where().idIn(roleIds).findRowCount();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user