edit
Project
@Modifying(clearAutomatically = true
)
@Query(value = ""UPDATE " + PROJECTS_KEY + " SET "
+ NAME_KEY + "=:" + NAME_KEY + ","
+ PROJECT_DESCRIPTION_KEY + "=:" + PROJECT_DESCRIPTION_KEY + ","
+ PROJECT_VERSION_KEY + "=:" + PROJECT_VERSION_KEY + ","
+ PROJECT_REPOSITORY_KEY + "=:" + PROJECT_REPOSITORY_KEY
+ " WHERE " + AUTHOR_KEY + "=:" + AUTHOR_KEY + " AND "
+ IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY",
nativeQuery = true
)
Method to execute the query to edit an existing Project
Parameters
author
The author of the project
projectId
The project identifier
name
The name of the project
description
The description of the project
version
The project_version of the project
repository
The GitHub or Gitlab project_repository url of the project
@Modifying(clearAutomatically = true
)
@Query(value = ""UPDATE " + PROJECTS_KEY + " SET "
+ NAME_KEY + "=:" + NAME_KEY + ","
+ PROJECT_ICON_KEY + "=:" + PROJECT_ICON_KEY + ","
+ PROJECT_DESCRIPTION_KEY + "=:" + PROJECT_DESCRIPTION_KEY + ","
+ PROJECT_VERSION_KEY + "=:" + PROJECT_VERSION_KEY + ","
+ PROJECT_REPOSITORY_KEY + "=:" + PROJECT_REPOSITORY_KEY
+ " WHERE " + AUTHOR_KEY + "=:" + AUTHOR_KEY + " AND "
+ IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY",
nativeQuery = true
)
Method to execute the query to edit an existing Project
Parameters
author
The author of the project
projectId
The project identifier
name
The name of the project
icon
The icon of the project
description
The description of the project
version
The project_version of the project
repository
The GitHub or Gitlab project_repository url of the project