saveUser

@Modifying(clearAutomatically = true)
@Query(value = "INSERT INTO " + USERS_KEY + "(" + DISCRIMINATOR_VALUE_KEY + "," + IDENTIFIER_KEY + "," + TOKEN_KEY + "," + TAG_NAME_KEY + "," + NAME_KEY + "," + SURNAME_KEY + "," + EMAIL_KEY + "," + PASSWORD_KEY + "," + LANGUAGE_KEY + ") VALUES (" + ":" + DISCRIMINATOR_VALUE_KEY + "," + ":" + IDENTIFIER_KEY + "," + ":" + TOKEN_KEY + "," + ":" + TAG_NAME_KEY + "," + ":" + NAME_KEY + "," + ":" + SURNAME_KEY + "," + ":" + EMAIL_KEY + "," + ":" + PASSWORD_KEY + "," + ":" + LANGUAGE_KEY + ")", nativeQuery = true)
abstract fun saveUser(@Param(value = "dtype") discriminatorValue: String, @Param(value = "id") id: String, @Param(value = "token") token: String, @Param(value = "tag_name") tagName: String, @Param(value = "name") name: String, @Param(value = "surname") surname: String, @Param(value = "email") email: String, @Param(value = "password") password: String, @Param(value = "language") language: String)

Method to execute the query to save a new user in the system

Parameters

discriminatorValue

: the discriminator value

id

: the identifier of the user

token

: the token of the user

tagName

: the tag name of the user

name

: the name of the user

surname

: the surname of the user

email

: the email of the user

password

: the password of the user

language

: the language of the user