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>
,JpaRepositoryConfigurationAware
,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 newQuerydslJpaRepository
from the given domain class andEntityManager
.QuerydslJpaRepository
(JpaEntityInformation<T, ID> entityInformation, jakarta.persistence.EntityManager entityManager, EntityPathResolver resolver) Deprecated.Creates a newQuerydslJpaRepository
from the given domain class andEntityManager
and uses the givenEntityPathResolver
to translate the domain class into anEntityPath
. -
Method Summary
Modifier and TypeMethodDescriptionlong
count
(com.querydsl.core.types.Predicate predicate) Deprecated.protected com.querydsl.jpa.JPQLQuery<?>
createCountQuery
(com.querydsl.core.types.Predicate... predicate) Deprecated.Creates a newJPQLQuery
count query for the givenPredicate
.protected com.querydsl.jpa.JPQLQuery<?>
createQuery
(com.querydsl.core.types.Predicate... predicate) Deprecated.Creates a newJPQLQuery
for the givenPredicate
.boolean
exists
(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, setProjectionFactory, setRepositoryMethodMetadata
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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 newQuerydslJpaRepository
from the given domain class andEntityManager
. This will use theSimpleEntityPathResolver
to 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 newQuerydslJpaRepository
from the given domain class andEntityManager
and uses the givenEntityPathResolver
to 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:
findOne
in interfaceQuerydslPredicateExecutor<T>
-
findAll
Deprecated.- Specified by:
findAll
in interfaceQuerydslPredicateExecutor<T>
-
findAll
public List<T> findAll(com.querydsl.core.types.Predicate predicate, com.querydsl.core.types.OrderSpecifier<?>... orders) Deprecated.- Specified by:
findAll
in interfaceQuerydslPredicateExecutor<T>
-
findAll
Deprecated.- Specified by:
findAll
in interfaceQuerydslPredicateExecutor<T>
-
findAll
Deprecated.- Specified by:
findAll
in interfaceQuerydslPredicateExecutor<T>
-
findAll
Deprecated.- Specified by:
findAll
in 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:
findBy
in interfaceQuerydslPredicateExecutor<T>
-
count
public long count(com.querydsl.core.types.Predicate predicate) Deprecated.- Specified by:
count
in interfaceQuerydslPredicateExecutor<T>
-
exists
public boolean exists(com.querydsl.core.types.Predicate predicate) Deprecated.- Specified by:
exists
in interfaceQuerydslPredicateExecutor<T>
-
createQuery
protected com.querydsl.jpa.JPQLQuery<?> createQuery(com.querydsl.core.types.Predicate... predicate) Deprecated.Creates a newJPQLQuery
for 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 newJPQLQuery
count query for the givenPredicate
.- Parameters:
predicate
- , can be null.- Returns:
- the Querydsl count
JPQLQuery
.
-
QuerydslJpaPredicateExecutor