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 )
abstract fun createGroup(@Param(value = "author") author: String, @Param(value = "id") groupId: String, @Param(value = "name") groupName: String, @Param(value = "logo") logo: String, @Param(value = "creation_date") creationDate: Long, @Param(value = "group_description") groupDescription: String)

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