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)
abstract fun addRelease(@Param(value = "id") releaseId: String, @Param(value = "creation_date") creationDate: Long, @Param(value = "release_version") releaseVersion: String, @Param(value = "project") projectId: String, @Param(value = "release_notes") releaseNotes: String)

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