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