diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ConfigurationNodeDAOImpl.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ConfigurationNodeDAOImpl.java index 5283e262..0d55745e 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ConfigurationNodeDAOImpl.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ConfigurationNodeDAOImpl.java @@ -265,7 +265,7 @@ public class ConfigurationNodeDAOImpl implements ConfigurationNodeDAO { @Override @Transactional public Result> delete(final Set all) { - return Result.tryCatch(() -> { + return Result.>tryCatch(() -> { final List ids = extractListOfPKs(all); @@ -306,7 +306,7 @@ public class ConfigurationNodeDAOImpl implements ConfigurationNodeDAO { return ids.stream() .map(id -> new EntityKey(id, EntityType.CONFIGURATION_NODE)) .collect(Collectors.toList()); - }); + }).onError(TransactionHandler::rollback); } private void handleConfigTemplateDeletion(final List configurationIds) {