@NoRepositoryBean
public interface MyRepository<T,ID extends Serializable>
extends org.springframework.data.jpa.repository.JpaRepository<T,ID>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<T>, org.springframework.data.repository.PagingAndSortingRepository<T,ID>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
batchInsert(List<T> list)
批量保存
|
void |
batchUpdate(List<T> list)
批量更新
|
String |
generateCode(String fieldName,
int length)
自动生成有规则的标识, 例如 001
|
String |
generateCode(String fieldName,
int length,
String sign)
自动生成有规则的标识, 例如 user001
|
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlushcount, delete, deleteAll, deleteAll, deleteById, existsById, findById, saveCopyright © 2020. All rights reserved.