insertReleaseDeletedNotification
@Modifying(clearAutomatically = true)
@Query(value = "INSERT INTO " + NOTIFICATIONS_KEY
+ " ("
+ IDENTIFIER_KEY + ","
+ LOGO_URL_KEY + ","
+ RELEASE_VERSION_KEY + ","
+ USER_KEY
+ " )"
+ " VALUES ("
+ ":" + IDENTIFIER_KEY + ","
+ ":" + LOGO_URL_KEY + ","
+ ":" + RELEASE_VERSION_KEY + ","
+ ":" + USER_KEY + ")", nativeQuery = true)
Method to execute the query to insert a new NovaNotification when a release has been deleted
Parameters
id
: the identifier of the notification
projectLogo
: the logo url of the related project
releaseVersion
: the version of the related release
userId
: the identifier of the user who the notification belongs