ConsignmentSearchResult.java
package com.tradecloud.dto.consignment;
import com.tradecloud.domain.common.Currency;
import com.tradecloud.domain.common.Incoterm;
import com.tradecloud.domain.model.ordermanagement.ConsignmentState;
import com.tradecloud.domain.party.Employee;
import com.tradecloud.domain.shipment.Shipment;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import java.util.Date;
@XmlAccessorType(XmlAccessType.FIELD)
public class ConsignmentSearchResult {
@XmlAttribute
private Long id;
@XmlAttribute
private String number;
@XmlAttribute
private String reference;
@XmlAttribute
private ConsignmentState state;
@XmlAttribute
private String shippingMode;
@XmlElement
private Currency currency;
@XmlElement
private Employee customer;
@XmlElement
private Employee consignee;
@XmlElement
private Shipment shipment;
@XmlElement(name = "PlaceOfLoading")
private String placeOfLoading;
@XmlElement(name = "PlaceOfDischarge")
private String placeOfDischarge;
@XmlElement
private Incoterm incoterm;
@XmlElement(name = "FreightForwarder")
private String freightForwarder;
@XmlAttribute
private Date estimatedDepartureDate;
private Date created;
private boolean emptyShipment;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Date getEstimatedDepartureDate() {
return estimatedDepartureDate;
}
public void setEstimatedDepartureDateTo(Date estimatedDepartureDateTo) {
this.estimatedDepartureDate = estimatedDepartureDateTo;
}
public String getNumber() {
return number;
}
public void setNumber(String number) {
this.number = number;
}
public String getReference() {
return reference;
}
public void setReference(String reference) {
this.reference = reference;
}
public ConsignmentState getState() {
return state;
}
public void setState(ConsignmentState state) {
this.state = state;
}
public String getShippingMode() {
return shippingMode;
}
public void setShippingMode(String shippingMode) {
this.shippingMode = shippingMode;
}
public Currency getCurrency() {
return currency;
}
public void setCurrency(Currency currency) {
this.currency = currency;
}
public Employee getCustomer() {
return customer;
}
public void setCustomer(Employee customer) {
this.customer = customer;
}
public Employee getConsignee() {
return consignee;
}
public void setConsignee(Employee consignee) {
this.consignee = consignee;
}
public Shipment getShipment() {
return shipment;
}
public void setShipment(Shipment shipment) {
this.shipment = shipment;
}
public String getPlaceOfLoading() {
return placeOfLoading;
}
public void setPlaceOfLoading(String placeOfLoading) {
this.placeOfLoading = placeOfLoading;
}
public String getPlaceOfDischarge() {
return placeOfDischarge;
}
public void setPlaceOfDischarge(String placeOfDischarge) {
this.placeOfDischarge = placeOfDischarge;
}
public Incoterm getIncoterm() {
return incoterm;
}
public void setIncoterm(Incoterm incoterm) {
this.incoterm = incoterm;
}
public String getFreightForwarder() {
return freightForwarder;
}
public void setFreightForwarder(String freightForwarder) {
this.freightForwarder = freightForwarder;
}
public boolean isEmptyShipment() {
return emptyShipment;
}
public void setEmptyShipment(boolean emptyShipment) {
this.emptyShipment = emptyShipment;
}
public Date getCreated() {
return created;
}
public void setCreated(Date created) {
this.created = created;
}
}