Class DetachableJpaRepoImpl<T,ID extends Serializable>
java.lang.Object
org.springframework.data.jpa.repository.support.SimpleJpaRepository<T,ID>
gov.llnl.gnem.apps.coda.common.repository.DetachableJpaRepoImpl<T,ID>
- All Implemented Interfaces:
DetachableJpaRepository<T,,ID> org.springframework.data.jpa.repository.JpaRepository<T,,ID> org.springframework.data.jpa.repository.JpaSpecificationExecutor<T>,org.springframework.data.jpa.repository.support.JpaRepositoryConfigurationAware,org.springframework.data.jpa.repository.support.JpaRepositoryImplementation<T,,ID> 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>
public class DetachableJpaRepoImpl<T,ID extends Serializable>
extends org.springframework.data.jpa.repository.support.SimpleJpaRepository<T,ID>
implements DetachableJpaRepository<T,ID>
-
Constructor Summary
ConstructorsConstructorDescriptionDetachableJpaRepoImpl(Class<T> domainClass, jakarta.persistence.EntityManager em) DetachableJpaRepoImpl(org.springframework.data.jpa.repository.support.JpaEntityInformation<T, ?> entityInformation, jakarta.persistence.EntityManager entityManager) -
Method Summary
Modifier and TypeMethodDescriptionfindOneDetached(ID id) Retrieves an entity by its id and detaches it from the EntityManager.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, setRepositoryMethodMetadataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Constructor Details
-
DetachableJpaRepoImpl
public DetachableJpaRepoImpl(org.springframework.data.jpa.repository.support.JpaEntityInformation<T, ?> entityInformation, jakarta.persistence.EntityManager entityManager) -
DetachableJpaRepoImpl
-
-
Method Details
-
findOneDetached
Description copied from interface:DetachableJpaRepositoryRetrieves an entity by its id and detaches it from the EntityManager.- Specified by:
findOneDetachedin interfaceDetachableJpaRepository<T,ID extends Serializable> - Parameters:
id- must not be null.- Returns:
- the entity with the given id or null if none found
-