I\'m am currently trying to use a Spring Data repository to delete some of my entities. The delete call works without any exceptions/error messages, but the entity is not delete
A simple alternative:
@Repository public interface PostRepository extends CrudRepository { @Modifying(clearAutomatically = true, flushAutomatically = true) @Query(value = "DELETE FROM post WHERE id = ?1", nativeQuery = true) void deleteById(long postId); }