Package entity

Class CustomerAccount

java.lang.Object
entity.CustomerAccount

public class CustomerAccount extends Object
Represents the relationship between a customer and an account. Each record indicates whether the customer is primary/secondary on the account.
Author:
TAMIL MUGHILAN
  • Field Details

    • id

      private int id
    • customerId

      private int customerId
    • accountNo

      private int accountNo
    • accountRole

      private String accountRole
  • Constructor Details

    • CustomerAccount

      public CustomerAccount(int customerId, int accountNo, String accountRole)
      Constructs a CustomerAccount.
      Parameters:
      customerId - customer ID
      accountNo - account number
      accountRole - account role (e.g., "PRIMARY")
  • Method Details

    • getId

      public int getId()
    • getCustomerId

      public int getCustomerId()
    • getAccountNo

      public int getAccountNo()
    • getAccountRole

      public String getAccountRole()
    • setId

      public void setId(int id)
    • setAccountRole

      public void setAccountRole(String accountRole)