1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package net.sf.oness.order.model.bo;
17
18 import java.math.BigDecimal;
19
20 import net.sf.oness.common.model.bo.AbstractBusinessObject;
21
22 /***
23 * @author Carlos Sanchez
24 * @version $Revision: 1.2 $
25 */
26 public abstract class Item extends AbstractBusinessObject {
27
28 private Long productId;
29
30 private BigDecimal quantity;
31
32 /***
33 * @param productId
34 * The productId to set.
35 */
36 public void setProductId(Long productId) {
37 this.productId = productId;
38 }
39
40 /***
41 * @hibernate.property
42 *
43 * @return Returns the productId.
44 */
45 public Long getProductId() {
46 return productId;
47 }
48
49 /***
50 * @param quantity
51 * The quantity to set.
52 */
53 public void setQuantity(BigDecimal quantity) {
54 this.quantity = quantity;
55 }
56
57 /***
58 * @hibernate.property length="2"
59 *
60 * @return Returns the quantity.
61 */
62 public BigDecimal getQuantity() {
63 return quantity;
64 }
65
66 }