Interface AccountRepository

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

@Repository public interface AccountRepository extends org.springframework.data.jpa.repository.JpaRepository<Account,Integer>
Spring Data JPA repository for the Account entity.
  • Method Summary

    Modifier and Type
    Method
    Description
    Finds all accounts associated with a given account holder 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

    • findByAccountHolder_Id

      List<Account> findByAccountHolder_Id(Integer accountHolderId)
      Finds all accounts associated with a given account holder ID.
      Parameters:
      accountHolderId - The ID of the account holder whose accounts to find.
      Returns:
      A list of accounts associated with the given account holder ID.