ReturnOfFund.java
package com.tradecloud.domain.document;
import com.tradecloud.common.base.PersistenceBase;
import com.tradecloud.domain.common.Currency;
import com.tradecloud.domain.document.invoice.CommercialInvoice;
import org.hibernate.annotations.ForeignKey;
import javax.persistence.*;
import javax.xml.bind.annotation.*;
import java.math.BigDecimal;
import java.util.Date;
/**
* ReturnOfFund.
*/
@Entity
@Table(name = "returnoffund")
@Access(AccessType.FIELD)
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "ReturnOfFund")
public class ReturnOfFund extends PersistenceBase {
private static final long serialVersionUID = 1L;
@ManyToOne
@XmlElement(name = "CommercialInvoice")
private CommercialInvoice invoice;
@XmlAttribute
private String reference;
@XmlAttribute
private Date dateCreated;
@XmlAttribute
private Date receiptDate;
@ManyToOne
@ForeignKey(name = "fk_currency")
@XmlElement
private Currency currency;
@XmlAttribute
private BigDecimal spotROE;
@XmlAttribute
private Date spotDate;
@XmlAttribute
private BigDecimal amount;
@XmlAttribute
private String comments;
public CommercialInvoice getInvoice() {
return invoice;
}
public void setInvoice(CommercialInvoice invoice) {
this.invoice = invoice;
}
public String getReference() {
return reference;
}
public void setReference(String reference) {
this.reference = reference;
}
public Date getDateCreated() {
return dateCreated;
}
public void setDateCreated(Date dateCreated) {
this.dateCreated = dateCreated;
}
public Date getReceiptDate() {
return receiptDate;
}
public void setReceiptDate(Date receiptDate) {
this.receiptDate = receiptDate;
}
public Currency getCurrency() {
return currency;
}
public void setCurrency(Currency currency) {
this.currency = currency;
}
public BigDecimal getSpotROE() {
return spotROE;
}
public void setSpotROE(BigDecimal spotROE) {
this.spotROE = spotROE;
}
public Date getSpotDate() {
return spotDate;
}
public void setSpotDate(Date spotDate) {
this.spotDate = spotDate;
}
public BigDecimal getAmount() {
return amount;
}
public void setAmount(BigDecimal amount) {
this.amount = amount;
}
public String getComments() {
return comments;
}
public void setComments(String comments) {
this.comments = comments;
}
}