Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Transactional
- public void deleteAll(List<E> entities) {
- if (entities == null || entities.isEmpty())
- return;
- mainRepo.deleteAll(entities);
- mainRepo.flush();
- // delete succeeded when reaching here
- String id = entities.get(0).root().getId();
- P root = rootRepository.getOne(id);
- updateRoot(root);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement