leave
Group
@Modifying(clearAutomatically = true
)
@Query(value = ""DELETE FROM " + GROUP_MEMBERS_TABLE + " WHERE " + GROUP_MEMBER_KEY + "=:" + GROUP_MEMBER_KEY
+ " AND " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY",
nativeQuery = true
)
Method to execute the query to leave from a group
Parameters
memberId
: the member identifier
groupId
: the group identifier