addRelease
@Modifying(clearAutomatically = true)
@Query(value = "INSERT INTO " + RELEASES_KEY +
" ("
+ IDENTIFIER_KEY + ","
+ CREATION_DATE_KEY + ","
+ RELEASE_VERSION_KEY + ","
+ PROJECT_KEY + ","
+ RELEASE_NOTES_KEY
+ " )"
+ " VALUES ("
+ ":" + IDENTIFIER_KEY + ","
+ ":" + CREATION_DATE_KEY + ","
+ ":" + RELEASE_VERSION_KEY + ","
+ ":" + PROJECT_KEY + ","
+ ":" + RELEASE_NOTES_KEY + ")", nativeQuery = true)
Method to execute the query to add a new Release
Parameters
releaseId
: the identifier of the release
creationDate
: the creation date when the release has been created
releaseVersion
: the version of the release
projectId
: the identifier of the project where attach the release
releaseNotes
: the notes attached to the release