1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package net.sf.oness.order.model.to;
17
18 import java.math.BigDecimal;
19 import java.util.Collection;
20
21 import net.sf.oness.common.model.to.AuditableTransferObject;
22 import net.sf.oness.party.model.party.bo.Party;
23
24 /***
25 * @author Carlos Sanchez
26 * @version $Revision: 1.2 $
27 */
28 public abstract class WithParty extends AuditableTransferObject {
29
30 private Party party;
31
32 private Collection items;
33
34 private BigDecimal amount;
35
36 /***
37 * @param party
38 * The party to set.
39 */
40 public void setParty(Party party) {
41 this.party = party;
42 }
43
44 /***
45 * @return Returns the party.
46 */
47 public Party getParty() {
48 return party;
49 }
50
51 /***
52 * @param items
53 * The items to set.
54 */
55 public void setItems(Collection items) {
56 this.items = items;
57 }
58
59 /***
60 * @return Returns the items.
61 */
62 public Collection getItems() {
63 return items;
64 }
65
66 /***
67 * @param amount
68 * The amount to set.
69 */
70 public void setAmount(BigDecimal amount) {
71 this.amount = amount;
72 }
73
74 /***
75 * @return Returns the amount.
76 */
77 public BigDecimal getAmount() {
78 return amount;
79 }
80
81 }