Provide deleted object to KeyValueTemplate instead of deleting entities by Id.

Closes #438
This commit is contained in:
Mark Paluch
2022-05-19 11:20:55 +02:00
parent 54dc3f35f3
commit 71105702e8
2 changed files with 3 additions and 2 deletions

View File

@@ -138,7 +138,7 @@ public class SimpleKeyValueRepository<T, ID> implements KeyValueRepository<T, ID
Assert.notNull(entity, "The given entity must not be null!");
deleteById(entityInformation.getRequiredId(entity));
operations.delete(entity);
}
@Override