I want to modify the repository.deleteAll()
and repository.delete()
so it don't delete everything, but just set active column to false.
Is this achievable for all my repository at once ?
I want to modify the repository.deleteAll()
and repository.delete()
so it don't delete everything, but just set active column to false.
Is this achievable for all my repository at once ?
I think you mean so-called 'soft delete'... There is one of implementations: Handling soft-deletes with Spring JPA
And this issue is still open for Spring Data JPA: https://jira.spring.io/browse/DATAJPA-307