mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1656 #1824 Stateless updates - Remove update deleteMissingChildren option, instead always use orphanRemoval
This commit is contained in:
@@ -48,7 +48,7 @@ public class TestStatelessUpdate extends TransactionalTestCase {
|
||||
updateAll.setId(e.getId());
|
||||
updateAll.setName("updAllProps");
|
||||
|
||||
server.update(updateAll, null, false);
|
||||
server.update(updateAll);
|
||||
|
||||
eBasic = server.find(EBasic.class, e.getId());
|
||||
assertEquals(e.getStatus(), eBasic.getStatus());
|
||||
@@ -383,9 +383,7 @@ public class TestStatelessUpdate extends TransactionalTestCase {
|
||||
updateCustomer.getContacts().add(updateContact3);
|
||||
|
||||
// not adding contact2 but it won't be deleted in this case
|
||||
boolean deleteMissingChildren = false;
|
||||
server.update(updateCustomer, null, deleteMissingChildren);
|
||||
|
||||
server.update(updateCustomer);
|
||||
|
||||
// assert
|
||||
Customer assCustomer = server.find(Customer.class, customer.getId());
|
||||
|
||||
Reference in New Issue
Block a user