editRelease

@Modifying(clearAutomatically = true)
@Query(value = ""UPDATE " + RELEASES_KEY + " SET " + RELEASE_NOTES_KEY + "=:" + RELEASE_NOTES_KEY + " WHERE " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY", nativeQuery = true)
abstract fun editRelease(@Param(value = "id") releaseId: String, @Param(value = "release_notes") releaseNotes: String)

Method to execute the query to edit an existing Release

Parameters

releaseId

: the identifier of the release

releaseNotes

: the notes attached to the release


@Modifying(clearAutomatically = true)
@Query(value = ""UPDATE " + RELEASES_KEY + " SET " + RELEASE_VERSION_KEY + "=:" + RELEASE_VERSION_KEY + "," + RELEASE_NOTES_KEY + "=:" + RELEASE_NOTES_KEY + " WHERE " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY", nativeQuery = true)
abstract fun editRelease(@Param(value = "id") releaseId: String, @Param(value = "release_version") releaseVersion: String, @Param(value = "release_notes") releaseNotes: String)

Method to execute the query to edit an existing Release

Parameters

releaseId

: the identifier of the release

releaseVersion

: the version of the release

releaseNotes

: the notes attached to the release