save Link

@Modifying(clearAutomatically = true )
@Query(value = "INSERT INTO " + LINKS_KEY + "(" + DISCRIMINATOR_VALUE_KEY + "," + LINK_IDENTIFIER_KEY + "," + TITLE_KEY + "," + DATE_KEY + "," + THUMBNAIL_PREVIEW_KEY + "," + DESCRIPTION_KEY + "," + REFERENCE_LINK_KEY + "," + OWNER_KEY + ") VALUES (" + ":" + DISCRIMINATOR_VALUE_KEY + "," + ":" + LINK_IDENTIFIER_KEY + "," + ":" + TITLE_KEY + "," + ":" + DATE_KEY + "," + ":" + THUMBNAIL_PREVIEW_KEY + "," + ":" + DESCRIPTION_KEY + "," + ":" + REFERENCE_LINK_KEY + "," + ":" + OWNER_KEY + ")", nativeQuery = true )
abstract fun saveLink(    @Param(value = "dtype") discriminatorValue: String,     @Param(value = "link_id") linkId: String,     @Param(value = "title") title: String,     @Param(value = "date") timestamp: Long,     @Param(value = "thumbnail_preview") thumbnailPreview: String,     @Param(value = "description") description: String,     @Param(value = "reference_link") referenceLink: String,     @Param(value = "owner") owner: String)

Method to execute the query to save a link

Parameters

discriminatorValue

The discriminator value

linkId

The identifier of the link

title

The title of the link

timestamp

The date when the item has been inserted in the system

thumbnailPreview

The url of the thumbnail preview of the link

description

The description of the link

referenceLink

The reference link value

owner

The owner of the link