BOEReport.java
package com.tradecloud.domain.shipment.clearing;
import com.tradecloud.common.base.PersistenceBase;
import javax.persistence.*;
import java.util.Set;
@Entity
public class BOEReport extends PersistenceBase {
@ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.DETACH)
private CustomsDeclaration customsDeclaration;
private boolean imports = true;
@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true, fetch = FetchType.LAZY)
@OrderBy("created DESC")
private Set<BOEReportLine> boeReportLines;
public CustomsDeclaration getCustomsDeclaration() {
return customsDeclaration;
}
public void setCustomsDeclaration(CustomsDeclaration customsDeclaration) {
this.customsDeclaration = customsDeclaration;
}
public Set<BOEReportLine> getBoeReportLines() {
return boeReportLines;
}
public void setBoeReportLines(Set<BOEReportLine> boeReportLines) {
this.boeReportLines = boeReportLines;
}
public boolean isImports() {
return imports;
}
public void setImports(boolean imports) {
this.imports = imports;
}
}