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 )
abstract fun editGroup(@Param(value = "id") groupId: String, @Param(value = "logo") logo: String, @Param(value = "name") groupName: String, @Param(value = "group_description") groupDescription: String)

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 )
abstract fun editGroup(@Param(value = "id") groupId: String, @Param(value = "name") groupName: String, @Param(value = "group_description") groupDescription: String)

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