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>
    Spring Data JPA repository for the User entity.
    • Method Detail

      • findAllByActivatedIsFalseAndActivationKeyIsNotNullAndCreatedDateBefore

        List<User> findAllByActivatedIsFalseAndActivationKeyIsNotNullAndCreatedDateBefore​(Instant dateTime)
      • findOneWithAuthoritiesById

        @EntityGraph(attributePaths="authorities")
        Optional<User> findOneWithAuthoritiesById​(Long id)
      • findOneWithAuthoritiesByLogin

        @Cacheable(cacheNames="usersByLogin")
        @EntityGraph(attributePaths="authorities")
        Optional<User> findOneWithAuthoritiesByLogin​(String login)
      • findOneWithAuthoritiesByEmailIgnoreCase

        @Cacheable(cacheNames="usersByEmail")
        @EntityGraph(attributePaths="authorities")
        Optional<User> findOneWithAuthoritiesByEmailIgnoreCase​(String email)
      • findAllByLoginNot

        org.springframework.data.domain.Page<User> findAllByLoginNot​(org.springframework.data.domain.Pageable pageable,
                                                                     String login)
      • findActiveByRole

        @Query(name="User.findActiveByRole")
        List<User> findActiveByRole​(@Param("role")
                                    String role)