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 /***
21 * @hibernate.class table="ordertable"
22 *
23 * @author Carlos Sanchez
24 * @version $Revision: 1.4 $
25 */
26 public class Order extends Master {
27
28 private Collection deliveryDockets;
29
30 private Boolean delivered;
31
32 /***
33 * @hibernate.bag table="order_orderitem" inverse="true" lazy="true"
34 * @hibernate.collection-key column="order_id"
35 * @hibernate.collection-many-to-many column="orderitem_id" class="net.sf.oness.order.model.bo.OrderItem"
36 */
37 public Collection getItems() {
38 return super.getItems();
39 }
40
41 /***
42 * @param deliveryDockets
43 * The deliveryDockets to set.
44 */
45 public void setDeliveryDockets(Collection deliveryDockets) {
46 this.deliveryDockets = deliveryDockets;
47 }
48
49 /***
50 * @hibernate.bag table="order_deliverydocket" inverse="true" lazy="true"
51 * @hibernate.collection-key column="order_id"
52 * @hibernate.collection-many-to-many column="deliverydocket_id" class="net.sf.oness.order.model.bo.DeliveryDocket"
53 *
54 * @return Returns the deliveryDockets.
55 */
56 public Collection getDeliveryDockets() {
57 return deliveryDockets;
58 }
59
60 /***
61 * @param delivered
62 * The delivered to set.
63 */
64 public void setDelivered(Boolean delivered) {
65 this.delivered = delivered;
66 }
67
68 /***
69 * @return Returns the delivered.
70 */
71 public Boolean getDelivered() {
72 return delivered;
73 }
74
75 }