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.util.Collection;
19
20 import net.sf.oness.common.model.bo.AbstractBusinessObject;
21 import net.sf.oness.common.model.temporal.Date;
22
23 /***
24 * @author Carlos Sanchez
25 * @version $Revision: 1.1 $
26 */
27 public abstract class Master extends AbstractBusinessObject {
28
29 private Long partyId;
30
31 private Date date;
32
33 private Collection items;
34
35 private Integer type;
36
37 public final static Integer PURCHASE = new Integer(1),
38 SELL = new Integer(2);
39
40 /***
41 * @param partyId
42 * The partyId to set.
43 */
44 public void setPartyId(Long partyId) {
45 this.partyId = partyId;
46 }
47
48 /***
49 * @hibernate.property
50 *
51 * @return Returns the partyId.
52 */
53 public Long getPartyId() {
54 return partyId;
55 }
56
57 /***
58 * @param date
59 * The date to set.
60 */
61 public void setDate(Date date) {
62 this.date = date;
63 }
64
65 /***
66 * @hibernate.property type="net.sf.oness.common.model.temporal.hibernate.DateType"
67 *
68 * @return Returns the date.
69 */
70 public Date getDate() {
71 return date;
72 }
73
74 /***
75 * @param items
76 * The items to set.
77 */
78 public void setItems(Collection items) {
79 this.items = items;
80 }
81
82 /***
83 * @return Returns the items.
84 */
85 public Collection getItems() {
86 return items;
87 }
88
89 /***
90 * @param type
91 * The type to set.
92 */
93 public void setType(Integer type) {
94 this.type = type;
95 }
96
97 /***
98 * @hibernate.property
99 *
100 * @return Returns the type.
101 */
102 public Integer getType() {
103 return type;
104 }
105
106 }