package model; import com.google.code.morphia.annotations.Embedded; import com.google.code.morphia.annotations.Id; import com.google.code.morphia.annotations.Reference; import org.bson.types.ObjectId; /** * * @author alonsus */ @Embedded public class LineaPedido { @Id ObjectId id; @Reference Producto producto; int cantidad; float precioproducto; float total; public LineaPedido() { } public float getPrecioproducto() { return precioproducto; } public void setPrecioproducto(float precioproducto) { this.precioproducto = precioproducto; } public float getTotal() { return total; } public void setTotal(float total) { this.total = total; } public ObjectId getId() { return id; } public void setId(ObjectId id) { this.id = id; } public Producto getProducto() { return producto; } public void setProducto(Producto producto) { this.producto = producto; } public int getCantidad() { return cantidad; } public void setCantidad(int cantidad) { this.cantidad = cantidad; } }