edit
Note
@Modifying(clearAutomatically = true
)
@Query(value = ""UPDATE " + NOTES_KEY + " SET " +
CONTENT_NOTE_KEY + "=:" + CONTENT_NOTE_KEY +
" WHERE " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY +
" AND " + AUTHOR_KEY + "=:" + AUTHOR_KEY",
nativeQuery = true
)
Method to execute the query to edit an existing Note
Parameters
authorId
The author of the note identifier
noteId
The note identifier
contentNote
The content of the note