@Transactional(rollbackFor=java.lang.Exception.class) @NoRepositoryBean public class SimpleBaseJpaRepository<T,ID> extends org.springframework.data.jpa.repository.support.SimpleJpaRepository<T,ID> implements BaseJpaRepository<T,ID>
| 限定符和类型 | 方法和说明 |
|---|---|
List |
findByNativeSQL(String sql,
Map<String,Serializable> paramMap)
native query
|
<S extends T> |
update(ID id,
S entity)
部分更新数据
|
<S extends T> |
updateAndFlush(ID id,
S entity)
部分更新数据
|
int |
updateByNativeSQL(String sql,
Map<String,Serializable> paramMap)
native update
|
count, count, count, delete, deleteAll, deleteAll, deleteAllInBatch, deleteById, deleteInBatch, exists, existsById, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAllById, findById, findOne, findOne, flush, getCountQuery, getCountQuery, getDomainClass, getOne, getQuery, getQuery, getQuery, getQuery, getQueryHints, getRepositoryMethodMetadata, readPage, readPage, save, saveAll, saveAndFlush, setEscapeCharacter, setRepositoryMethodMetadataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlushcount, delete, deleteAll, deleteAll, deleteById, existsById, findById, savepublic <S extends T> S update(ID id, S entity)
BaseJpaRepositoryupdate 在接口中 BaseJpaRepository<T,ID>S - T extend Tid - identity - entitypublic <S extends T> S updateAndFlush(ID id, S entity)
BaseJpaRepositoryupdateAndFlush 在接口中 BaseJpaRepository<T,ID>S - T extend Tid - identity - entitypublic List findByNativeSQL(String sql, Map<String,Serializable> paramMap)
findByNativeSQL 在接口中 BaseJpaRepository<T,ID>sql - sqlparamMap - parameter mappublic int updateByNativeSQL(String sql, Map<String,Serializable> paramMap)
updateByNativeSQL 在接口中 BaseJpaRepository<T,ID>sql - sqlparamMap - parameter mapCopyright © 2020. All rights reserved.