Class UserRepositoryImpl

    • Constructor Detail

      • UserRepositoryImpl

        public UserRepositoryImpl()
    • Method Detail

      • search

        public org.springframework.data.domain.Page<User> search​(java.lang.String username,
                                                                 java.lang.String email,
                                                                 java.lang.String name,
                                                                 java.lang.String role,
                                                                 org.springframework.data.domain.Pageable pageable)
        Finds Users matching all of the provided parameters. If there are no parameters, return all Users.
        Specified by:
        search in interface UserRepositoryCustom
        Parameters:
        pageable - pagination parameters (page size, page number, sort order)
        name - name of a user
        username - username of a user
        role - name of UserRole
        email - email of a user
        Returns:
        page with found users
      • getPath

        protected javax.persistence.criteria.Path getPath​(javax.persistence.criteria.Root root,
                                                          org.springframework.data.domain.Sort.Order order)
        Overrides:
        getPath in class BaseRepositoryImpl