edit
Team
@Modifying(clearAutomatically = true
)
@Query(value = ""UPDATE " + TEAMS_KEY + " SET " +
TITLE_KEY + "=:" + TITLE_KEY + "," +
LOGO_PIC_KEY + "=:" + LOGO_PIC_KEY + "," +
DESCRIPTION_KEY + "=:" + DESCRIPTION_KEY +
" WHERE " + TEAM_IDENTIFIER_KEY + "=:" + TEAM_IDENTIFIER_KEY + " AND " + OWNER_KEY + "=:" + OWNER_KEY",
nativeQuery = true
)
Method to execute the query to edit a team
Parameters
teamId
The identifier of the team
title
The title of the team
logoPic
The logo picture of the team
description
The description of the team
owner
The owner of the team