Package entity
Class CustomerAccount
java.lang.Object
entity.CustomerAccount
Represents the relationship between a customer and an account.
Each record indicates whether the customer is primary/secondary on the account.
- Author:
- TAMIL MUGHILAN
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCustomerAccount
(int customerId, int accountNo, String accountRole) Constructs a CustomerAccount. -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
getId()
void
setAccountRole
(String accountRole) void
setId
(int id)
-
Field Details
-
id
private int id -
customerId
private int customerId -
accountNo
private int accountNo -
accountRole
-
-
Constructor Details
-
CustomerAccount
Constructs a CustomerAccount.- Parameters:
customerId
- customer IDaccountNo
- account numberaccountRole
- account role (e.g., "PRIMARY")
-
-
Method Details
-
getId
public int getId() -
getCustomerId
public int getCustomerId() -
getAccountNo
public int getAccountNo() -
getAccountRole
-
setId
public void setId(int id) -
setAccountRole
-