T - entity typeI - ID typeorg.springframework.data.repository.CrudRepository<T,I>, org.springframework.data.jpa.repository.JpaRepository<T,I>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<T>, org.springframework.data.repository.PagingAndSortingRepository<T,I>, org.springframework.data.repository.query.QueryByExampleExecutor<T>, org.springframework.data.repository.Repository<T,I>public interface CustomJpaRepository<T,I extends java.io.Serializable>
extends org.springframework.data.jpa.repository.JpaRepository<T,I>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<T>
JpaRepository| Modifier and Type | Method | Description |
|---|---|---|
java.util.Optional<T> |
findFirstBy() |
Find first by
|
java.util.Optional<T> |
findForUpdateById(I id) |
Find for update by
Id |
count, delete, deleteAll, deleteAll, deleteById, existsById, findById, savedeleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlushcount, findAll, findAll, findAll, findOneCopyright © 2017–2018 SPT. All rights reserved.