Class QuerydslJpaRepository<T,ID extends Serializable>

java.lang.Object
org.springframework.data.jpa.repository.support.SimpleJpaRepository<T,ID>
org.springframework.data.jpa.repository.support.QuerydslJpaRepository<T,ID>
All Implemented Interfaces:
JpaRepository<T,ID>, JpaSpecificationExecutor<T>, JpaRepositoryImplementation<T,ID>, QuerydslPredicateExecutor<T>, CrudRepository<T,ID>, ListCrudRepository<T,ID>, ListPagingAndSortingRepository<T,ID>, PagingAndSortingRepository<T,ID>, QueryByExampleExecutor<T>, Repository<T,ID>

@Deprecated public class QuerydslJpaRepository<T,ID extends Serializable> extends SimpleJpaRepository<T,ID> implements QuerydslPredicateExecutor<T>
Deprecated.
Instead of this class use QuerydslJpaPredicateExecutor
QueryDsl specific extension of SimpleJpaRepository which adds implementation for QuerydslPredicateExecutor.
Author:
Oliver Gierke, Thomas Darimont, Mark Paluch, Jocelyn Ntakpe, Christoph Strobl, Jens Schauder, Greg Turnquist, Yanming Zhou
  • Constructor Details

    • QuerydslJpaRepository

      public QuerydslJpaRepository(JpaEntityInformation<T,ID> entityInformation, jakarta.persistence.EntityManager entityManager)
      Deprecated.
      Creates a new QuerydslJpaRepository from the given domain class and EntityManager. This will use the SimpleEntityPathResolver to translate the given domain class into an EntityPath.
      Parameters:
      entityInformation - must not be null.
      entityManager - must not be null.
    • QuerydslJpaRepository

      public QuerydslJpaRepository(JpaEntityInformation<T,ID> entityInformation, jakarta.persistence.EntityManager entityManager, EntityPathResolver resolver)
      Deprecated.
      Creates a new QuerydslJpaRepository from the given domain class and EntityManager and uses the given EntityPathResolver to translate the domain class into an EntityPath.
      Parameters:
      entityInformation - must not be null.
      entityManager - must not be null.
      resolver - must not be null.
  • Method Details

    • findOne

      public Optional<T> findOne(com.querydsl.core.types.Predicate predicate)
      Deprecated.
      Specified by:
      findOne in interface QuerydslPredicateExecutor<T>
    • findAll

      public List<T> findAll(com.querydsl.core.types.Predicate predicate)
      Deprecated.
      Specified by:
      findAll in interface QuerydslPredicateExecutor<T>
    • findAll

      public List<T> findAll(com.querydsl.core.types.Predicate predicate, com.querydsl.core.types.OrderSpecifier<?>... orders)
      Deprecated.
      Specified by:
      findAll in interface QuerydslPredicateExecutor<T>
    • findAll

      public List<T> findAll(com.querydsl.core.types.Predicate predicate, Sort sort)
      Deprecated.
      Specified by:
      findAll in interface QuerydslPredicateExecutor<T>
    • findAll

      public List<T> findAll(com.querydsl.core.types.OrderSpecifier<?>... orders)
      Deprecated.
      Specified by:
      findAll in interface QuerydslPredicateExecutor<T>
    • findAll

      public Page<T> findAll(com.querydsl.core.types.Predicate predicate, Pageable pageable)
      Deprecated.
      Specified by:
      findAll in interface QuerydslPredicateExecutor<T>
    • findBy

      public <S extends T, R> R findBy(com.querydsl.core.types.Predicate predicate, Function<FluentQuery.FetchableFluentQuery<S>,R> queryFunction)
      Deprecated.
      Specified by:
      findBy in interface QuerydslPredicateExecutor<T>
    • count

      public long count(com.querydsl.core.types.Predicate predicate)
      Deprecated.
      Specified by:
      count in interface QuerydslPredicateExecutor<T>
    • exists

      public boolean exists(com.querydsl.core.types.Predicate predicate)
      Deprecated.
      Specified by:
      exists in interface QuerydslPredicateExecutor<T>
    • createQuery

      protected com.querydsl.jpa.JPQLQuery<?> createQuery(com.querydsl.core.types.Predicate... predicate)
      Deprecated.
      Creates a new JPQLQuery for the given Predicate.
      Parameters:
      predicate -
      Returns:
      the Querydsl JPQLQuery.
    • createCountQuery

      protected com.querydsl.jpa.JPQLQuery<?> createCountQuery(@Nullable com.querydsl.core.types.Predicate... predicate)
      Deprecated.
      Creates a new JPQLQuery count query for the given Predicate.
      Parameters:
      predicate - , can be null.
      Returns:
      the Querydsl count JPQLQuery.