Interface BankAccountRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<BankAccount,UUID>, org.springframework.data.jpa.repository.JpaRepository<BankAccount,UUID>, org.springframework.data.repository.ListCrudRepository<BankAccount,UUID>, org.springframework.data.repository.ListPagingAndSortingRepository<BankAccount,UUID>, org.springframework.data.repository.PagingAndSortingRepository<BankAccount,UUID>, org.springframework.data.repository.query.QueryByExampleExecutor<BankAccount>, org.springframework.data.repository.Repository<BankAccount,UUID>

@Repository public interface BankAccountRepository extends org.springframework.data.jpa.repository.JpaRepository<BankAccount,UUID>
Repository interface for managing bank accounts in the database. It extends JpaRepository, which provides basic CRUD operations and JPA-related methods.
  • Method Summary

    Modifier and Type
    Method
    Description
    findAllByBankIdentitiesId(List<UUID> bankIdentitiesIds)
    Finds all bank accounts associated with a list of bank identity IDs.
    findAllByBankIdentityId(UUID bankIdentityId)
    Finds all bank accounts associated with a specific bank identity ID.

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findAllByBankIdentityId

      Optional<List<BankAccount>> findAllByBankIdentityId(UUID bankIdentityId)
      Finds all bank accounts associated with a specific bank identity ID.
      Parameters:
      bankIdentityId - The ID of the bank identity.
      Returns:
      An optional list of bank accounts linked to the provided bank identity ID.
    • findAllByBankIdentitiesId

      @Query("SELECT a FROM BankAccount a WHERE a.bankIdentity.id IN :bankIdentitiesIds") List<BankAccount> findAllByBankIdentitiesId(List<UUID> bankIdentitiesIds)
      Finds all bank accounts associated with a list of bank identity IDs.
      Parameters:
      bankIdentitiesIds - The list of bank identity IDs.
      Returns:
      A list of bank accounts linked to the provided bank identity IDs.