insert
Project
@Modifying(clearAutomatically = true
)
@Query(value = "INSERT INTO " + PROJECTS_KEY
+ "( "
+ AUTHOR_KEY + ","
+ IDENTIFIER_KEY + ","
+ NAME_KEY + ","
+ PROJECT_ICON_KEY + ","
+ CREATION_DATE_KEY + ","
+ PROJECT_DESCRIPTION_KEY + ","
+ PROJECT_VERSION_KEY + ","
+ PROJECT_REPOSITORY_KEY + ") VALUES "
+ "( "
+ ":" + AUTHOR_KEY + ","
+ ":" + IDENTIFIER_KEY + ","
+ ":" + NAME_KEY + ","
+ ":" + PROJECT_ICON_KEY + ","
+ ":" + CREATION_DATE_KEY + ","
+ ":" + PROJECT_DESCRIPTION_KEY + ","
+ ":" + PROJECT_VERSION_KEY + ","
+ ":" + PROJECT_REPOSITORY_KEY + ")",
nativeQuery = true
)
Method to execute the query to add a new Project
Parameters
author
The author of the project
projectId
The project identifier
name
The name of the project
icon
The icon of the project
creationDate
The date when the project has been created
description
The description of the project
version
The project_version of the project
repository
The GitHub or Gitlab project_repository url of the project