// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
public class OrderLine {
    private int id;
    private int orderId;
    private String item;
    private int qty;
    public OrderLine() {
        this(0, 0, "", 0);
    }
    public OrderLine(int id, int orderId, String item, int qty) {
        this.id = id;
        this.orderId = orderId;
        this.item = item;
        this.qty = qty;
    }
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public int getOrderId() {
        return orderId;
    }
    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }
    public String getItem() {
        return item;
    }
    public void setItem(String item) {
        this.item = item;
    }
    public int getQty() {
        return qty;
    }
    public void setQty(int qty) {
        this.qty = qty;
    }
}
