public interface ClientDao extends org.springframework.data.jpa.repository.JpaRepository<Client,java.lang.String>, org.springframework.data.repository.PagingAndSortingRepository<Client,java.lang.String>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<Client>
| 限定符和类型 | 方法和说明 |
|---|---|
int |
deleteByClientId(java.lang.String clientId)
根据ClientId删除数据
|
java.util.List<Client> |
findByClientId(java.lang.String clientId)
根据ClientId查询数据
|
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlushcount, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save@Query(value="select c from Client c where c.clientId = :clientId") java.util.List<Client> findByClientId(@Param(value="clientId") java.lang.String clientId)
clientId - clientId@Transactional(rollbackFor=java.lang.Exception.class)
@Modifying(flushAutomatically=true,
clearAutomatically=true)
@Query(value="delete from Client c where c.clientId = :clientId")
int deleteByClientId(@Param(value="clientId")
java.lang.String clientId)
clientId - ClientId