saveTeam
@Modifying(clearAutomatically = true)
@Query(value = "INSERT INTO " + TEAMS_KEY + "(" +
TEAM_IDENTIFIER_KEY + "," +
TITLE_KEY + "," +
LOGO_PIC_KEY + "," +
DESCRIPTION_KEY + "," +
OWNER_KEY
+ ") VALUES (" +
":" + TEAM_IDENTIFIER_KEY + "," +
":" + TITLE_KEY + "," +
":" + LOGO_PIC_KEY + "," +
":" + DESCRIPTION_KEY + "," +
":" + OWNER_KEY +
")", nativeQuery = true)
Method to execute the query to save 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