Package org.nentangso.core.repository
Interface NtsUserRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<NtsUserEntity,String>,org.springframework.data.jpa.repository.JpaRepository<NtsUserEntity,String>,org.springframework.data.repository.PagingAndSortingRepository<NtsUserEntity,String>,org.springframework.data.repository.query.QueryByExampleExecutor<NtsUserEntity>,org.springframework.data.repository.Repository<NtsUserEntity,String>
@Repository public interface NtsUserRepository extends org.springframework.data.jpa.repository.JpaRepository<NtsUserEntity,String>
Spring Data JPA repository for theNtsUserEntityentity.
-
-
Field Summary
Fields Modifier and Type Field Description static StringUSERS_BY_EMAIL_CACHEstatic StringUSERS_BY_LOGIN_CACHE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.springframework.data.domain.Page<NtsUserEntity>findAllByIdNotNullAndActivatedIsTrue(org.springframework.data.domain.Pageable pageable)Optional<NtsUserEntity>findOneByLogin(String login)Optional<NtsUserEntity>findOneWithAuthoritiesByLogin(String login)-
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, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush
-
-
-
-
Field Detail
-
USERS_BY_LOGIN_CACHE
static final String USERS_BY_LOGIN_CACHE
- See Also:
- Constant Field Values
-
USERS_BY_EMAIL_CACHE
static final String USERS_BY_EMAIL_CACHE
- See Also:
- Constant Field Values
-
-
Method Detail
-
findOneByLogin
Optional<NtsUserEntity> findOneByLogin(String login)
-
findOneWithAuthoritiesByLogin
@EntityGraph(attributePaths="authorities") @Cacheable(cacheNames="usersByLogin") Optional<NtsUserEntity> findOneWithAuthoritiesByLogin(String login)
-
findAllByIdNotNullAndActivatedIsTrue
org.springframework.data.domain.Page<NtsUserEntity> findAllByIdNotNullAndActivatedIsTrue(org.springframework.data.domain.Pageable pageable)
-
-