insertAsset

@Modifying(clearAutomatically = true)
@Query(value = "INSERT INTO " + ASSETS_UPLOADED_KEY + " (" + IDENTIFIER_KEY + "," + ASSET_URL_KEY + "," + ASSET_UPLOADING_EVENT_IDENTIFIER_KEY + "," + NAME_KEY + " )" + " VALUES (" + ":" + IDENTIFIER_KEY + "," + ":" + ASSET_URL_KEY + "," + ":" + ASSET_UPLOADING_EVENT_IDENTIFIER_KEY + "," + ":" + NAME_KEY + ")", nativeQuery = true)
abstract fun insertAsset(@Param(value = "id") assetId: String, @Param(value = "asset_url") assetUrl: String, @Param(value = "asset_uploading_event_id") eventId: String, @Param(value = "name") assetName: String)

Method to execute the query to insert a new asset uploaded (AssetUploaded)

Parameters

eventId

: the identifier of the event

assetId

: the identifier of the asset

assetUrl

: the url to reach the asset

assetName

: the name of the asset