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 newQuerydslJpaRepository
from the given domain class andEntityManager
.QuerydslJpaRepository
(JpaEntityInformation<T, ID> entityInformation, jakarta.persistence.EntityManager entityManager, org.springframework.data.querydsl.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.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, 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, org.springframework.data.querydsl.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 interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<T>
-
findAll
Deprecated.- Specified by:
findAll
in 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:
findAll
in 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:
findAll
in interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<T>
-
findAll
Deprecated.- Specified by:
findAll
in 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:
findAll
in 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:
findBy
in interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<T>
-
count
public long count(com.querydsl.core.types.Predicate predicate) Deprecated.- Specified by:
count
in interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<T>
-
exists
public boolean exists(com.querydsl.core.types.Predicate predicate) Deprecated.- Specified by:
exists
in interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<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