saveCollection
@Modifying(clearAutomatically = true)
@Query(value = "INSERT INTO " + COLLECTIONS_KEY + "(" +
IDENTIFIER_KEY + "," +
COLLECTION_COLOR_KEY + "," +
TITLE_KEY + "," +
DESCRIPTION_KEY + "," +
OWNER_KEY
+ ") VALUES (" +
":" + IDENTIFIER_KEY + "," +
":" + COLLECTION_COLOR_KEY + "," +
":" + TITLE_KEY + "," +
":" + DESCRIPTION_KEY + "," +
":" + OWNER_KEY +
")", nativeQuery = true)
Method to execute the query to save a collection
Parameters
collectionId
: the identifier of the collection
color
: the color of the collection
title
: the title of the collection
description
: the description of the collection
owner
: the owner of the collection