add
Group
Project
@Modifying(clearAutomatically = true
)
@Query(value = "INSERT INTO " + PROJECTS_GROUPS_TABLE + "("
+ PROJECT_IDENTIFIER_KEY + ","
+ GROUP_IDENTIFIER_KEY
+ ") VALUES ("
+ ":" + PROJECT_IDENTIFIER_KEY + ","
+ ":" + GROUP_IDENTIFIER_KEY + ")",
nativeQuery = true
)
Method to execute the query to add a project to a group
Parameters
projectId
The project to add to a group
groupId
The group where add the project