approveAsset

@Modifying(clearAutomatically = true)
@Query(value = ""UPDATE " + RELEASES_KEY + " SET " + APPROBATION_DATE_KEY + "=:" + APPROBATION_DATE_KEY + " WHERE " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY", nativeQuery = true)
abstract fun approveAsset(@Param(value = "id") releaseId: String, @Param(value = "approbation_date") approbationDate: Long)

Method to execute the query to approve an existing Release

Parameters

releaseId

: the identifier of the release to approve

approbationDate

: the approbation date when the release has been approved