insertNotification

@Modifying(clearAutomatically = true)
@Query(value = "INSERT INTO " + NOTIFICATIONS_KEY + " (" + IDENTIFIER_KEY + "," + LOGO_URL_KEY + "," + RELEASE_IDENTIFIER_KEY + "," + RELEASE_VERSION_KEY + "," + RELEASE_STATUS_KEY + "," + USER_KEY + " )" + " VALUES (" + ":" + IDENTIFIER_KEY + "," + ":" + LOGO_URL_KEY + "," + ":" + RELEASE_IDENTIFIER_KEY + "," + ":" + RELEASE_VERSION_KEY + "," + ":" + RELEASE_STATUS_KEY + "," + ":" + USER_KEY + ")", nativeQuery = true)
abstract fun insertNotification(@Param(value = "id") id: String, @Param(value = "logo_url") projectLogo: String, @Param(value = "release_id") releaseId: String, @Param(value = "release_version") releaseVersion: String, @Param(value = "release_status") releaseStatus: String, @Param(value = "user") userId: String)

Method to execute the query to insert a new NovaNotification

Parameters

id

: the identifier of the notification

projectLogo

: the logo url of the related project

releaseId

: the identifier of the related release

releaseVersion

: the version of the related release

releaseStatus

: the status of the related release

userId

: the identifier of the user who the notification belongs