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.
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, 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.Deprecated.Deprecated.<S extends T,R>
RfindBy(com.querydsl.core.types.Predicate predicate, Function<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, 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 interfaceQuerydslPredicateExecutor<T>
-
findAll
Deprecated.- Specified by:
findAllin interfaceQuerydslPredicateExecutor<T>
-
findAll
public List<T> findAll(com.querydsl.core.types.Predicate predicate, com.querydsl.core.types.OrderSpecifier<?>... orders) Deprecated.- Specified by:
findAllin interfaceQuerydslPredicateExecutor<T>
-
findAll
Deprecated.- Specified by:
findAllin interfaceQuerydslPredicateExecutor<T>
-
findAll
Deprecated.- Specified by:
findAllin interfaceQuerydslPredicateExecutor<T>
-
findAll
Deprecated.- Specified by:
findAllin interfaceQuerydslPredicateExecutor<T>
-
findBy
public <S extends T,R> R findBy(com.querydsl.core.types.Predicate predicate, Function<FluentQuery.FetchableFluentQuery<S>, R> queryFunction) Deprecated.- Specified by:
findByin interfaceQuerydslPredicateExecutor<T>
-
count
public long count(com.querydsl.core.types.Predicate predicate) Deprecated.- Specified by:
countin interfaceQuerydslPredicateExecutor<T>
-
exists
public boolean exists(com.querydsl.core.types.Predicate predicate) Deprecated.- Specified by:
existsin interfaceQuerydslPredicateExecutor<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