BankingDetails.java
package com.tradecloud.domain;
import com.tradecloud.common.base.StaticDataEntityBase;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
/**
* BankingDetails.
*/
@SuppressWarnings("serial")
@Entity
@Table(name = "bankingdetails")
@Access(AccessType.FIELD)
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "BankingDetails")
public class BankingDetails extends StaticDataEntityBase {
private String currency;
@ManyToOne
private BankAccount beneficiaryBankAccount;
@ManyToOne
private BankAccount correspondentBankAccount;
/**
* @return Returns the beneficiaryBankAccount.
*/
public BankAccount getBeneficiaryBankAccount() {
return beneficiaryBankAccount;
}
/**
* @param beneficiaryBankAccount The beneficiaryBankAccount to set.
*/
public void setBeneficiaryBankAccount(BankAccount beneficiaryBankAccount) {
this.beneficiaryBankAccount = beneficiaryBankAccount;
}
/**
* @return Returns the correspondentBankAccount.
*/
public BankAccount getCorrespondentBankAccount() {
return correspondentBankAccount;
}
/**
* @param correspondentBankAccount The correspondentBankAccount to set.
*/
public void setCorrespondentBankAccount(BankAccount correspondentBankAccount) {
this.correspondentBankAccount = correspondentBankAccount;
}
public String getCurrency() {
return currency;
}
public void setCurrency(String currency) {
this.currency = currency;
}
@Override
public String toString() {
return "BankingDetails [beneficiaryBankAccount=" + beneficiaryBankAccount + ", correspondentBankAccount=" + correspondentBankAccount
+ ", currency=" + currency + "]";
}
}