joinMember
@Modifying(clearAutomatically = true)
@Query(value = "INSERT INTO " + PROJECT_MEMBERS_TABLE +
" ("
+ IDENTIFIER_KEY + ","
+ MEMBER_IDENTIFIER_KEY +
" )"
+ " VALUES ("
+ ":" + IDENTIFIER_KEY + ","
+ ":" + MEMBER_IDENTIFIER_KEY
+ ")", nativeQuery = true)
Method to execute the query to join a new member in an existing Project
Parameters
projectId
: the identifier of the project
memberId
: the identifier of the member to join