edit Application

@Modifying(clearAutomatically = true )
@Query(value = ""UPDATE " + APPLICATIONS_KEY + " SET " + NAME_KEY + "=:" + NAME_KEY + "," + DESCRIPTION_KEY + "=:" + DESCRIPTION_KEY + " WHERE " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY", nativeQuery = true )
abstract fun editApplication(@Param(value = "id") applicationId: String, @Param(value = "name") name: String, @Param(value = "description") description: String)

Method to edit an existing application

Parameters

applicationId

The identifier of the application

name

The name of the application

description

The description of the application


@Modifying(clearAutomatically = true )
@Query(value = ""UPDATE " + APPLICATIONS_KEY + " SET " + NAME_KEY + "=:" + NAME_KEY + "," + DESCRIPTION_KEY + "=:" + DESCRIPTION_KEY + "," + APPLICATION_ICON_KEY + "=:" + APPLICATION_ICON_KEY + " WHERE " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY", nativeQuery = true )
abstract fun editApplication(@Param(value = "id") applicationId: String, @Param(value = "name") name: String, @Param(value = "description") description: String, @Param(value = "icon") icon: String)

Method to edit an existing application

Parameters

applicationId

The identifier of the application

name

The name of the application

description

The description of the application

icon

The icon of the application