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> org.springframework.data.querydsl.QuerydslPredicateExecutor<T>,org.springframework.data.repository.CrudRepository<T,,ID> org.springframework.data.repository.ListCrudRepository<T,,ID> org.springframework.data.repository.ListPagingAndSortingRepository<T,,ID> org.springframework.data.repository.PagingAndSortingRepository<T,,ID> org.springframework.data.repository.query.QueryByExampleExecutor<T>,org.springframework.data.repository.Repository<T,ID>
@Deprecated
public class QuerydslJpaRepository<T,ID extends Serializable>
extends SimpleJpaRepository<T,ID>
implements org.springframework.data.querydsl.QuerydslPredicateExecutor<T>
Deprecated.
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 Summary
ConstructorsConstructorDescriptionQuerydslJpaRepository(JpaEntityInformation<T, ID> entityInformation, jakarta.persistence.EntityManager entityManager) Deprecated.Creates a newQuerydslJpaRepositoryfrom the given domain class andEntityManager.QuerydslJpaRepository(JpaEntityInformation<T, ID> entityInformation, jakarta.persistence.EntityManager entityManager, org.springframework.data.querydsl.EntityPathResolver resolver) Deprecated.Creates a newQuerydslJpaRepositoryfrom the given domain class andEntityManagerand uses the givenEntityPathResolverto translate the domain class into anEntityPath. -
Method Summary
Modifier and TypeMethodDescriptionlongcount(com.querydsl.core.types.Predicate predicate) Deprecated.protected com.querydsl.jpa.JPQLQuery<?>createCountQuery(com.querydsl.core.types.Predicate... predicate) Deprecated.Creates a newJPQLQuerycount query for the givenPredicate.protected com.querydsl.jpa.JPQLQuery<?>createQuery(com.querydsl.core.types.Predicate... predicate) Deprecated.Creates a newJPQLQueryfor the givenPredicate.booleanexists(com.querydsl.core.types.Predicate predicate) Deprecated.findAll(com.querydsl.core.types.OrderSpecifier<?>... orders) Deprecated.findAll(com.querydsl.core.types.Predicate predicate) Deprecated.findAll(com.querydsl.core.types.Predicate predicate, com.querydsl.core.types.OrderSpecifier<?>... orders) Deprecated.org.springframework.data.domain.Page<T>findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Pageable pageable) Deprecated.findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Sort sort) Deprecated.<S extends T,R>
RfindBy(com.querydsl.core.types.Predicate predicate, Function<org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<S>, R> queryFunction) Deprecated.findOne(com.querydsl.core.types.Predicate predicate) Deprecated.Methods inherited from class org.springframework.data.jpa.repository.support.SimpleJpaRepository
count, count, count, delete, delete, deleteAll, deleteAll, deleteAllById, deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteById, exists, exists, existsById, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAllById, findBy, findBy, findById, findOne, findOne, flush, getById, getCountQuery, getCountQuery, getDomainClass, getOne, getQuery, getQuery, getQuery, getQuery, getQueryHints, getQueryHintsForCount, getReferenceById, getRepositoryMethodMetadata, readPage, readPage, save, saveAll, saveAllAndFlush, saveAndFlush, setEscapeCharacter, setRepositoryMethodMetadataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteInBatch
-
Constructor Details
-
QuerydslJpaRepository
public QuerydslJpaRepository(JpaEntityInformation<T, ID> entityInformation, jakarta.persistence.EntityManager entityManager) Deprecated.Creates a newQuerydslJpaRepositoryfrom the given domain class andEntityManager. This will use theSimpleEntityPathResolverto translate the given domain class into anEntityPath.- Parameters:
entityInformation- must not be null.entityManager- must not be null.
-
QuerydslJpaRepository
public QuerydslJpaRepository(JpaEntityInformation<T, ID> entityInformation, jakarta.persistence.EntityManager entityManager, org.springframework.data.querydsl.EntityPathResolver resolver) Deprecated.Creates a newQuerydslJpaRepositoryfrom the given domain class andEntityManagerand uses the givenEntityPathResolverto translate the domain class into anEntityPath.- Parameters:
entityInformation- must not be null.entityManager- must not be null.resolver- must not be null.
-
-
Method Details
-
findOne
Deprecated.- Specified by:
findOnein interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<T>
-
findAll
Deprecated.- Specified by:
findAllin interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<T>
-
findAll
public List<T> findAll(com.querydsl.core.types.Predicate predicate, com.querydsl.core.types.OrderSpecifier<?>... orders) Deprecated.- Specified by:
findAllin interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<T>
-
findAll
public List<T> findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Sort sort) Deprecated.- Specified by:
findAllin interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<T>
-
findAll
Deprecated.- Specified by:
findAllin interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<T>
-
findAll
public org.springframework.data.domain.Page<T> findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Pageable pageable) Deprecated.- Specified by:
findAllin interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<T>
-
findBy
public <S extends T,R> R findBy(com.querydsl.core.types.Predicate predicate, Function<org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<S>, R> queryFunction) Deprecated.- Specified by:
findByin interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<T>
-
count
public long count(com.querydsl.core.types.Predicate predicate) Deprecated.- Specified by:
countin interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<T>
-
exists
public boolean exists(com.querydsl.core.types.Predicate predicate) Deprecated.- Specified by:
existsin interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<T>
-
createQuery
protected com.querydsl.jpa.JPQLQuery<?> createQuery(com.querydsl.core.types.Predicate... predicate) Deprecated.Creates a newJPQLQueryfor the givenPredicate.- Parameters:
predicate-- Returns:
- the Querydsl
JPQLQuery.
-
createCountQuery
protected com.querydsl.jpa.JPQLQuery<?> createCountQuery(@Nullable com.querydsl.core.types.Predicate... predicate) Deprecated.Creates a newJPQLQuerycount query for the givenPredicate.- Parameters:
predicate- , can be null.- Returns:
- the Querydsl count
JPQLQuery.
-
QuerydslJpaPredicateExecutor