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