set
Group
Notes
Marker
After
User
Deletion
@Modifying(clearAutomatically = true
)
@Query(value = "UPDATE " + NOTES_KEY + " SET "
+ MARKED_AS_DONE_BY_KEY + "= NULL"
+ " WHERE " + MARKED_AS_DONE_BY_KEY + "=:" + IDENTIFIER_KEY
+ " AND " + UPDATE_KEY + " IS NOT NULL",
nativeQuery = true
)
Method to execute the query to remove the constraints between PandoroUser deleted and the marker of the Note
Parameters
userId
The user identifier