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 )
abstract fun editNote(@Param(value = "author") authorId: String, @Param(value = "id") noteId: String, @Param(value = "content_note") contentNote: String)

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