@Repository @Profile(value="jpa") public interface BankAccountRepositoryJpa extends org.springframework.data.jpa.repository.JpaRepository<BankAccountJpaEntity,Long>
| Modifier and Type | Method and Description |
|---|---|
List<BankAccountJpaEntity> |
deleteByBankAccessId(String accessId) |
List<BankAccountJpaEntity> |
findByUserId(String userId) |
List<BankAccountJpaEntity> |
findByUserIdAndBankAccessId(String userId,
String bankAccessId) |
Optional<BankAccountJpaEntity> |
findByUserIdAndId(String userId,
Long id) |
BankAccount.SyncStatus |
getSyncStatus(Long id) |
int |
updateSyncStatus(BankAccount.SyncStatus status,
Long id) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlushfindAllList<BankAccountJpaEntity> findByUserId(String userId)
List<BankAccountJpaEntity> findByUserIdAndBankAccessId(String userId, String bankAccessId)
Optional<BankAccountJpaEntity> findByUserIdAndId(String userId, Long id)
List<BankAccountJpaEntity> deleteByBankAccessId(String accessId)
@Query(value="SELECT sync_status FROM bank_account where id = ?1",
nativeQuery=true)
BankAccount.SyncStatus getSyncStatus(Long id)
@Modifying @Query(value="update bank_account account set account.syncStatus = ?1 where account.id = ?2") int updateSyncStatus(BankAccount.SyncStatus status, Long id)
Copyright © 2020. All rights reserved.