View Javadoc

1   /*
2    * Copyright 2004 Carlos Sanchez.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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  }