T
- the domain classID
- the type of the Id of the domain classN
- the type of the revisionpublic class EnversSearchRepositoryImpl<T,ID extends Serializable,N extends Number & Comparable<N>> extends SearchRepositoryImpl<T,ID> implements EnversSearchRepository<T,ID,N>
EnversSearchRepository
implementation.EnversSearchRepository
implementations:
<repositories base-class="org.appng.persistence.repository.EnversSearchRepositoryImpl">See 4.6.2. Adding custom behavior to all repositories from the reference Documentation for further details.
domainClass, entityManager
Constructor and Description |
---|
EnversSearchRepositoryImpl(JpaEntityInformation<T,ID> entityInformation,
EntityManager entityManager) |
Modifier and Type | Method and Description |
---|---|
Revision<N,T> |
findLastChangeRevision(ID id) |
Revision<N,T> |
findRevision(ID id,
N revisionNumber) |
Revisions<N,T> |
findRevisions(ID id) |
Page<Revision<N,T>> |
findRevisions(ID id,
Pageable pageable) |
protected Class<?> |
getRevisionEntity()
Can be overwritten by extending class to support alternative RevisionEntity implementations
|
createSearchQuery, detach, findAll, getHistory, getRevision, getRevisionNumber, isUnique, isUnique, search, search, search
count, count, count, delete, delete, delete, deleteAll, deleteAllInBatch, deleteInBatch, exists, exists, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findOne, findOne, findOne, flush, getCountQuery, getCountQuery, getDomainClass, getOne, getQuery, getQuery, getQuery, getQuery, getQueryHints, getRepositoryMethodMetadata, readPage, readPage, save, save, saveAndFlush, setRepositoryMethodMetadata
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createSearchQuery, detach, getHistory, getRevision, getRevisionNumber, isUnique, isUnique, search, search, search
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlush
findAll
count, delete, delete, delete, deleteAll, exists, findOne, save
count, exists, findAll, findOne
public EnversSearchRepositoryImpl(JpaEntityInformation<T,ID> entityInformation, EntityManager entityManager)
protected Class<?> getRevisionEntity()
public Revision<N,T> findRevision(ID id, N revisionNumber)
findRevision
in interface RevisionRepository<T,ID extends Serializable,N extends Number & Comparable<N>>
public Revision<N,T> findLastChangeRevision(ID id)
findLastChangeRevision
in interface RevisionRepository<T,ID extends Serializable,N extends Number & Comparable<N>>
public Page<Revision<N,T>> findRevisions(ID id, Pageable pageable)
findRevisions
in interface RevisionRepository<T,ID extends Serializable,N extends Number & Comparable<N>>
public Revisions<N,T> findRevisions(ID id)
findRevisions
in interface RevisionRepository<T,ID extends Serializable,N extends Number & Comparable<N>>
Copyright © 2011–2017 aiticon GmbH. All rights reserved.