Interface DetachableJpaRepository<T,ID extends Serializable>
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<T,,ID> org.springframework.data.jpa.repository.JpaRepository<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>
- All Known Subinterfaces:
CalibrationShapeFitterConstraintsRepository,MdacParametersFiRepository,MdacParametersPsRepository,MeasuredMwsRepository,PathCalibrationMeasurementRepository,PeakVelocityMeasurementRepository,PolygonRepository,ReferenceMwParametersRepository,ShapeMeasurementRepository,SharedFrequencyBandParametersRepository,SiteFrequencyBandParametersRepository,SpectraMeasurementRepository,SpectraRatioJointInversionSampleRepository,SpectraRatioPairDetailsRepository,SpectraRatioPairInversionSampleRepository,SyntheticRepository,ValidationMwParametersRepository,VelocityConfigurationRepository,WaveformPickRepository,WaveformRepository
- All Known Implementing Classes:
DetachableJpaRepoImpl
@NoRepositoryBean
public interface DetachableJpaRepository<T,ID extends Serializable>
extends org.springframework.data.jpa.repository.JpaRepository<T,ID>
-
Method Summary
Modifier and TypeMethodDescriptionfindOneDetached(ID id) Retrieves an entity by its id and detaches it from the EntityManager.Methods 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
-
Method Details
-
findOneDetached
Retrieves an entity by its id and detaches it from the EntityManager.- Parameters:
id- must not be null.- Returns:
- the entity with the given id or null if none found
- Throws:
IllegalArgumentException- ifidis null
-