create
Group
@Modifying(clearAutomatically = true
)
@Query(value = "INSERT INTO " + GROUPS_KEY
+ "( "
+ IDENTIFIER_KEY + ","
+ NAME_KEY + ","
+ GROUP_LOGO_KEY + ","
+ CREATION_DATE_KEY + ","
+ GROUP_DESCRIPTION_KEY + ","
+ AUTHOR_KEY + ") VALUES "
+ "( "
+ ":" + IDENTIFIER_KEY + ","
+ ":" + NAME_KEY + ","
+ ":" + GROUP_LOGO_KEY + ","
+ ":" + CREATION_DATE_KEY + ","
+ ":" + GROUP_DESCRIPTION_KEY + ","
+ ":" + AUTHOR_KEY + ")",
nativeQuery = true
)
Method to execute the query to create a new Group
Parameters
author
The author of the group
groupId
The identifier of the new group
groupName
The name of the group
logo
The logo of the group
creationDate
The date when the group has been created
groupDescription
The description of the group