Skip to content

Best way to know if CrudRepository.deleteById deleted something #1535

Discussion options

You must be logged in to vote

You can create an alternative method Long removeById(Id) and it will return the number of records deleted.

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
7 replies
@graemerocher
Comment options

@dstepanov
Comment options

@KarlHakanNordgren
Comment options

@dstepanov
Comment options

@KarlHakanNordgren
Comment options

Answer selected by KarlHakanNordgren
Comment options

You must be logged in to vote
3 replies
@dstepanov
Comment options

@theMyth721
Comment options

@dstepanov
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants