Interface UserRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<User,Long>
,org.springframework.data.jpa.repository.JpaRepository<User,Long>
,org.springframework.data.repository.PagingAndSortingRepository<User,Long>
,org.springframework.data.repository.query.QueryByExampleExecutor<User>
,org.springframework.data.repository.Repository<User,Long>
@Repository public interface UserRepository extends org.springframework.data.jpa.repository.JpaRepository<User,Long>
Class represent repository which is responsible for users db operations
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<User>
findByEmail(String email)
Gets user by emailOptional<User>
findByUsername(String userName)
Gets user by usernameList<User>
getNonAdminUsers()
Gets all non admin users-
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save
-
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlush
-
-