public class DetachableJpaRepositoryImpl<T,ID extends Serializable> extends org.springframework.data.jpa.repository.support.SimpleJpaRepository<T,ID> implements DetachableJpaRepository<T,ID>
JpaRepository extension to allow to get detached entities using the
EntityManager.detach(Object) method.| Constructor and Description |
|---|
DetachableJpaRepositoryImpl(Class<T> domainClass,
javax.persistence.EntityManager em)
Creates a new
DetachableJpaRepositoryImpl to manage objects of the given domain type. |
DetachableJpaRepositoryImpl(org.springframework.data.jpa.repository.support.JpaEntityInformation<T,?> entityInformation,
javax.persistence.EntityManager entityManager)
Creates a new
DetachableJpaRepositoryImpl to manage objects of the given
JpaEntityInformation. |
| Modifier and Type | Method and Description |
|---|---|
T |
findOneDetached(ID id)
Retrieves an entity by its id and detaches it from the EntityManager.
|
count, count, count, delete, delete, delete, deleteAll, deleteAllInBatch, deleteInBatch, exists, exists, findAll, 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, setRepositoryMethodMetadataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAllpublic DetachableJpaRepositoryImpl(org.springframework.data.jpa.repository.support.JpaEntityInformation<T,?> entityInformation, javax.persistence.EntityManager entityManager)
DetachableJpaRepositoryImpl to manage objects of the given
JpaEntityInformation.entityInformation - must not be null.entityManager - must not be null.public DetachableJpaRepositoryImpl(Class<T> domainClass, javax.persistence.EntityManager em)
DetachableJpaRepositoryImpl to manage objects of the given domain type.domainClass - must not be null.em - must not be null.public T findOneDetached(ID id)
DetachableJpaRepositoryfindOneDetached in interface DetachableJpaRepository<T,ID extends Serializable>id - must not be null.Copyright © 2018 DISID Corporation. All rights reserved.