mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-19 23:02:24 +00:00
#666 - deleteAll(beans) return int , but deleteAll(beanType,ids) return void in EbeanServer
This commit is contained in:
1 parent
ae261d3782
commit
f8b5a7f312
6 files changed
+31
-30
No files matched your search
@@ -565,10 +565,10 @@ public final class DefaultPersister implements Persister {
|
||||
/**
|
||||
* Delete by a List of Id's.
|
||||
*/
|
||||
public void deleteMany(Class<?> beanType, Collection<?> ids, Transaction transaction, boolean permanent) {
|
||||
public int deleteMany(Class<?> beanType, Collection<?> ids, Transaction transaction, boolean permanent) {
|
||||
|
||||
if (ids == null || ids.size() == 0) {
|
||||
return;
|
||||
return 0;
|
||||
}
|
||||
|
||||
BeanDescriptor<?> descriptor = beanDescriptorManager.getBeanDescriptor(beanType);
|
||||
@@ -580,7 +580,7 @@ public final class DefaultPersister implements Persister {
|
||||
}
|
||||
|
||||
boolean softDelete = !permanent && descriptor.isSoftDelete();
|
||||
delete(descriptor, null, idList, transaction, softDelete);
|
||||
return delete(descriptor, null, idList, transaction, softDelete);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user