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="invoice"
22 *
23 * @author Carlos Sanchez
24 * @version $Revision: 1.4 $
25 */
26 public class Invoice extends Master {
27
28 private Collection deliveryDockets;
29
30 /***
31 * @hibernate.bag table="invoice_invoiceitem" inverse="true" lazy="true"
32 * @hibernate.collection-key column="invoice_id"
33 * @hibernate.collection-many-to-many column="invoiceitem_id" class="net.sf.oness.order.model.bo.InvoiceItem"
34 *
35 * @return Returns the items.
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="deliverydocket_invoice" lazy="true" order-by="deliverydocket_id desc"
51 * @hibernate.collection-key column="invoice_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 }