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)
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