Interface UsersRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Users,java.util.UUID>,org.springframework.data.jpa.repository.JpaRepository<Users,java.util.UUID>,org.springframework.data.repository.PagingAndSortingRepository<Users,java.util.UUID>,org.springframework.data.repository.query.QueryByExampleExecutor<Users>,org.springframework.data.repository.Repository<Users,java.util.UUID>
@Repository public interface UsersRepository extends org.springframework.data.jpa.repository.JpaRepository<Users,java.util.UUID>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanexistsByEmail(java.lang.String email)Checks if anUsersobject exists with the given emailbooleanexistsByUsername(java.lang.String username)Checks if anUsersobject exists with the given user namejava.util.Optional<Users>findByEmail(java.lang.String email)FindUsersobject from the given users emailjava.util.Optional<Users>findByUsername(java.lang.String username)FindUsersobject from the given user name.-
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
-
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
-
-
-
-
Method Detail
-
existsByUsername
boolean existsByUsername(java.lang.String username)
Checks if anUsersobject exists with the given user name- Parameters:
username- the user name- Returns:
- true if a
Usersobject exists with the given user name
-
existsByEmail
boolean existsByEmail(java.lang.String email)
Checks if anUsersobject exists with the given email- Parameters:
email- the email- Returns:
- true if a
Usersobject exists with the given email
-
findByUsername
java.util.Optional<Users> findByUsername(java.lang.String username)
FindUsersobject from the given user name.- Parameters:
username- the user name- Returns:
- the found
Usersobject
-
-