save
Team
@Modifying(clearAutomatically = true
)
@Query(value = "INSERT INTO " + TEAMS_KEY + "(" +
TEAM_IDENTIFIER_KEY + "," +
TITLE_KEY + "," +
LOGO_PIC_KEY + "," +
DESCRIPTION_KEY + "," +
DATE_KEY + "," +
OWNER_KEY
+ ") VALUES (" +
":" + TEAM_IDENTIFIER_KEY + "," +
":" + TITLE_KEY + "," +
":" + LOGO_PIC_KEY + "," +
":" + DESCRIPTION_KEY + "," +
":" + DATE_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
timestamp
The date when the item has been inserted in the system
owner
The owner of the team