mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
batch delete entries too
This commit is contained in:
@@ -63,10 +63,11 @@ public abstract class GenericDAO<T extends AbstractModel> {
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(Collection<? extends AbstractModel> objects) {
|
||||
public int delete(Collection<? extends AbstractModel> objects) {
|
||||
for (AbstractModel object : objects) {
|
||||
delete(object);
|
||||
}
|
||||
return objects.size();
|
||||
}
|
||||
|
||||
public void deleteById(Long id) {
|
||||
|
||||
Reference in New Issue
Block a user