Clover coverage report - ONess Order Management Model - 0.5-SNAPSHOT
Coverage timestamp: jue ene 6 2005 02:36:20 CET
file stats: LOC: 60   Methods: 3
NCLOC: 13   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
Invoice.java - 100% 100% 100%
coverage
 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="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  176 public Collection getItems() {
 38  176 return super.getItems();
 39    }
 40   
 41    /**
 42    * @param deliveryDockets
 43    * The deliveryDockets to set.
 44    */
 45  38 public void setDeliveryDockets(Collection deliveryDockets) {
 46  38 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  152 public Collection getDeliveryDockets() {
 57  152 return deliveryDockets;
 58    }
 59   
 60    }