package org.jboss.arquillian.extension.rest.app.model;
import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
@Entity
@Table(name = "line_item")
public class LineItem implements Serializable {
private static final long serialVersionUID = 1L;
private Long id;
private SalesOrder order;
private Product product;
private BigDecimal quantity;
@Id
@GeneratedValue
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
@ManyToOne
public SalesOrder getOrder() {
return order;
}
public void setOrder(SalesOrder order) {
this.order = order;
}
@ManyToOne
public Product getProduct() {
return product;
}
public void setProduct(Product product) {
this.product = product;
}
public BigDecimal getQuantity() {
return quantity;
}
public void setQuantity(BigDecimal quantity) {
this.quantity = quantity;
}
}