delete
Note
@Modifying(clearAutomatically = true
)
@Query(value = ""DELETE FROM " + NOTES_KEY + " WHERE " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY
+ " AND " + AUTHOR_KEY + "=:" + AUTHOR_KEY",
nativeQuery = true
)
Method to execute the query to delete a Note
Parameters
authorId
The author of the note identifier
noteId
The note identifier