edit
Group
@Modifying(clearAutomatically = true
)
@Query(value = ""UPDATE " + GROUPS_KEY + " SET " +
GROUP_LOGO_KEY + "=:" + GROUP_LOGO_KEY + "," +
NAME_KEY + "=:" + NAME_KEY + "," +
GROUP_DESCRIPTION_KEY + "=:" + GROUP_DESCRIPTION_KEY +
" WHERE " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY",
nativeQuery = true
)
Method to execute the query to edit an existing Group
Parameters
logo
The logo of the group
groupId
The identifier of the new group
groupName
The name of the group
groupDescription
The description of the group
@Modifying(clearAutomatically = true
)
@Query(value = ""UPDATE " + GROUPS_KEY + " SET " +
NAME_KEY + "=:" + NAME_KEY + "," +
GROUP_DESCRIPTION_KEY + "=:" + GROUP_DESCRIPTION_KEY +
" WHERE " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY",
nativeQuery = true
)
Method to execute the query to edit an existing Group
Parameters
groupId
The identifier of the new group
groupName
The name of the group
groupDescription
The description of the group