store Issue

@Modifying(clearAutomatically = true )
@Query(value = "INSERT INTO " + ISSUES_KEY + " (" + "dtype" + "," + IDENTIFIER_KEY + "," + CREATION_DATE_KEY + "," + NAME_KEY + "," + APP_VERSION_KEY + "," + PLATFORM_KEY + "," + ISSUE_KEY + "," + APPLICATION_IDENTIFIER_KEY + "," + DEVICE_IDENTIFIER_KEY + ") VALUES ('" + ISSUE_KEY + "'," + ":" + IDENTIFIER_KEY + "," + ":" + CREATION_DATE_KEY + "," + ":" + NAME_KEY + "," + ":" + APP_VERSION_KEY + "," + ":#{#" + PLATFORM_KEY + ".name()}" + "," + ":" + ISSUE_KEY + "," + ":" + APPLICATION_IDENTIFIER_KEY + "," + ":" + DEVICE_IDENTIFIER_KEY + ")", nativeQuery = true )
abstract fun storeIssue(@Param(value = "id") id: String, @Param(value = "creation_date") creationDate: Long, @Param(value = "name") name: String, @Param(value = "app_version") appVersion: String, @Param(value = "platform") platform: Platform, @Param(value = "issue") issue: String, @Param(value = "application_id") applicationId: String, @Param(value = "device_id") deviceId: String)

Method to store a new issue

Parameters

id

The identifier of the issue

creationDate

When the issue occurred

name

The name of the issue

appVersion

The version of the application where the issue occurred

platform

The platform of the application where the issue occurred

issue

The issue cause message

applicationId

The identifier of the application where the issue occurred

deviceId

The identifier of the device where the issue occurred