save
Collection
@Modifying(clearAutomatically = true
)
@Query(value = "INSERT INTO " + COLLECTIONS_KEY + "(" +
IDENTIFIER_KEY + "," +
COLLECTION_COLOR_KEY + "," +
TITLE_KEY + "," +
DESCRIPTION_KEY + "," +
DATE_KEY + "," +
OWNER_KEY
+ ") VALUES (" +
":" + IDENTIFIER_KEY + "," +
":" + COLLECTION_COLOR_KEY + "," +
":" + TITLE_KEY + "," +
":" + DESCRIPTION_KEY + "," +
":" + DATE_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
timestamp
The date when the item has been inserted in the system
owner
The owner of the collection