package org.niit.springtrans.entities; import java.util.HashSet; import java.util.Set; /** * Account entity. @author MyEclipse Persistence Tools */ public class Account implements java.io.Serializable { // Fields private long aid; private String aname; private String acontact; private String aaddress; private Set cards = new HashSet(0); // Constructors /** default constructor */ public Account() { } /** minimal constructor */ public Account(long aid) { this.aid = aid; } /** full constructor */ public Account(long aid, String aname, String acontact, String aaddress, Set cards) { this.aid = aid; this.aname = aname; this.acontact = acontact; this.aaddress = aaddress; this.cards = cards; } // Property accessors public long getAid() { return this.aid; } public void setAid(long aid) { this.aid = aid; } public String getAname() { return this.aname; } public void setAname(String aname) { this.aname = aname; } public String getAcontact() { return this.acontact; } public void setAcontact(String acontact) { this.acontact = acontact; } public String getAaddress() { return this.aaddress; } public void setAaddress(String aaddress) { this.aaddress = aaddress; } public Set getCards() { return this.cards; } public void setCards(Set cards) { this.cards = cards; } } package org.niit.springtrans.entities; import java.util.Date; import java.util.HashSet; import java.util.Set; /** * Card entity. @author MyEclipse Persistence Tools */ public class Card implements java.io.Serializable { // Fields private String cid; private Account account; private Date applyTime; private float balance; private Set tradecredentialsForTbcid = new HashSet(0); private Set tradecredentialsForTacid = new HashSet(0); // Constructors /** default constructor */ public Card() { } /** minimal constructor */ public Card(String cid) { this.cid = cid; } /** full constructor */ public Card(String cid, Account account, Date applyTime, float balance, Set tradecredentialsForTbcid, Set tradecredentialsForTacid) { this.cid = cid; this.account = account; this.applyTime = applyTime; this.balance = balance; this.tradecredentialsForTbcid = tradecredentialsForTbcid; this.tradecredentialsForTacid = tradecredentialsForTacid; } // Property accessors public String getCid() { return this.cid; } public void setCid(String cid) { this.cid = cid; } public Account getAccount() { return this.account; } public void setAccount(Account account) { this.account = account; } public Date getApplyTime() { return this.applyTime; } public void setApplyTime(Date applyTime) { this.applyTime = applyTime; } public float getBalance() { return this.balance; } public void setBalance(float balance) { this.balance = balance; } public Set getTradecredentialsForTbcid() { return this.tradecredentialsForTbcid; } public void setTradecredentialsForTbcid(Set tradecredentialsForTbcid) { this.tradecredentialsForTbcid =