Package entity

Class CustomerAccount.Builder

java.lang.Object
entity.CustomerAccount.Builder
Enclosing class:
CustomerAccount

public static class CustomerAccount.Builder extends Object
Builder for creating CustomerAccount instances.
  • Field Details

    • id

      private int id
    • customerId

      private final int customerId
    • accountNo

      private final int accountNo
    • accountRole

      private String accountRole
  • Constructor Details

    • Builder

      public Builder(int customerId, int accountNo)
      Constructs a builder with required fields.
      Parameters:
      customerId - customer ID
      accountNo - account number
  • Method Details