public interface PasswordHistoryDao extends org.springframework.data.jpa.repository.JpaRepository<PasswordHistory,java.lang.String>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<PasswordHistory>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
deleteById(java.lang.String id)
删除Account
|
java.util.List<PasswordHistory> |
findByAccountId(long accountId) |
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlushcount, delete, deleteAll, deleteAll, deleteAllById, existsById, findById, save@Transactional(rollbackFor=java.lang.Exception.class)
@Modifying(flushAutomatically=true,
clearAutomatically=true)
@Query(value="delete from PasswordHistory ph where ph.id = :id")
void deleteById(@Param(value="id")
java.lang.String id)
deleteById 在接口中 org.springframework.data.repository.CrudRepository<PasswordHistory,java.lang.String>id - @Query(value="select ph from PasswordHistory ph where ph.accountId = :accountId order by ph.createTime") java.util.List<PasswordHistory> findByAccountId(@Param(value="accountId") long accountId)