package selling.sunshine.model;

public class BankCard extends Entity {
    private String bankCardId;
    private String bankCardNo;
    private Agent agent;
    private boolean preferred;

    public BankCard() {
        super();
        preferred = true;
    }

    public BankCard(String bankCardNo, Agent agent) {
        this();
        this.bankCardNo = bankCardNo;
        this.agent = agent;
    }

    public BankCard(String bankCardNo, Agent agent, boolean preferred) {
        this(bankCardNo, agent);
        this.preferred = preferred;
    }

    public String getBankCardId() {
        return bankCardId;
    }

    public void setBankCardId(String bankCardId) {
        this.bankCardId = bankCardId;
    }

    public String getBankCardNo() {
        return bankCardNo;
    }

    public void setBankCardNo(String bankCardNo) {
        this.bankCardNo = bankCardNo;
    }

    public Agent getAgent() {
        return agent;
    }

    public void setAgent(Agent agent) {
        this.agent = agent;
    }

    public boolean getPreferred() {
        return preferred;
    }

    public void setPreferred(boolean preferred) {
        this.preferred = preferred;
    }


}

@@ -26,16 +26,59 @@
 model;%0A%0A
+import selling.sunshine.model.lite.Agent;%0A%0A
 public c

modify agent in bankcard