Interface SplibRepository<T,I>
- Type Parameters:
T- The entity classI- The data type of the surrogate key, likeLong.
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<T,I>, org.springframework.data.jpa.repository.JpaRepository<T, I>, org.springframework.data.repository.ListCrudRepository<T, I>, org.springframework.data.repository.ListPagingAndSortingRepository<T, I>, org.springframework.data.repository.PagingAndSortingRepository<T, I>, org.springframework.data.repository.query.QueryByExampleExecutor<T>, org.springframework.data.repository.Repository<T, I>
@NoRepositoryBean
public interface SplibRepository<T,I>
extends org.springframework.data.jpa.repository.JpaRepository<T,I>
Provides epository methods needed for soft delete.
-
Method Summary
Modifier and TypeMethodDescriptionvoidIs used to physical-delete soft-deleted records.Is used to physical-delete soft-deleted records.Is used to physical-delete soft-deleted records.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
-
findByIdAndSoftDeleteFieldTrueFromAllGroups
-
findByNaturalKeyAndSoftDeleteFieldTrueFromAllGroups
-
deleteByIdAndSoftDeleteFieldTrueFromAllGroups
Is used to physical-delete soft-deleted records.- Parameters:
entity- entity
-