package mapping.idprops;
import java.util.Date;
import java.util.Set;
import java.util.HashSet;
/**
* {@inheritDoc}
*
* @author Steve Ebersole
*/
public class Order {
private Long number;
private Date placed;
private Person orderee;
private Set lineItems = new HashSet();
public Order() {
}
public Order(Long number, Person orderee) {
this.number = number;
this.orderee = orderee;
this.placed = new Date();
}
public Long getNumber() {
return number;
}
public void setNumber(Long number) {
this.number = number;
}
public Date getPlaced() {
return placed;
}
public void setPlaced(Date placed) {
this.placed = placed;
}
public Person getOrderee() {
return orderee;
}
public void setOrderee(Person orderee) {
this.orderee = orderee;
}
public Set getLineItems() {
return lineItems;
}
public void setLineItems(Set lineItems) {
this.lineItems = lineItems;
}
}