Equinox
Users
Repository
The UsersRepository
interface is
useful to manage the queries for the users operations
Author
N7ghtm4r3 - Tecknobit
Since
1.0.1
Parameters
<T>
: generic type to allow the use of custom users inherited from EquinoxUser
See also
JpaRepository
Functions
Link copied to clipboard
@Modifying(clearAutomatically = true
)
@Query(value = ""UPDATE " + USERS_KEY + " SET " + EMAIL_KEY + "=:" + EMAIL_KEY + " WHERE "
+ IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY",
nativeQuery = true
)
Method to execute the query to change the
email of the EquinoxUser
Link copied to clipboard
@Modifying(clearAutomatically = true
)
@Query(value = ""UPDATE " + USERS_KEY + " SET " + LANGUAGE_KEY + "=:" + LANGUAGE_KEY + " WHERE "
+ IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY",
nativeQuery = true
)
Method to execute the query to change the
language of the EquinoxUser
Link copied to clipboard
@Modifying(clearAutomatically = true
)
@Query(value = ""UPDATE " + USERS_KEY + " SET " + PASSWORD_KEY + "=:" + PASSWORD_KEY + " WHERE "
+ IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY",
nativeQuery = true
)
Method to execute the query to change the
password of the EquinoxUser
Link copied to clipboard
@Modifying(clearAutomatically = true
)
@Query(value = ""UPDATE " + USERS_KEY + " SET " + PROFILE_PIC_KEY + "=:" + PROFILE_PIC_KEY + " WHERE "
+ IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY",
nativeQuery = true
)
Method to execute the query to change the
profile pic of the EquinoxUser
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Query(value = ""SELECT * FROM " + USERS_KEY + " WHERE " + EMAIL_KEY + "=:" + EMAIL_KEY",
nativeQuery = true
)
Method to execute the query to find a EquinoxUser
by email field
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard