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.math.BigDecimal;
19  
20  import net.sf.oness.common.model.bo.AbstractBusinessObject;
21  
22  /***
23   * @author Carlos Sanchez
24   * @version $Revision: 1.2 $
25   */
26  public abstract class Item extends AbstractBusinessObject {
27  
28      private Long productId;
29  
30      private BigDecimal quantity;
31  
32      /***
33       * @param productId
34       *            The productId to set.
35       */
36      public void setProductId(Long productId) {
37          this.productId = productId;
38      }
39  
40      /***
41       * @hibernate.property
42       * 
43       * @return Returns the productId.
44       */
45      public Long getProductId() {
46          return productId;
47      }
48  
49      /***
50       * @param quantity
51       *            The quantity to set.
52       */
53      public void setQuantity(BigDecimal quantity) {
54          this.quantity = quantity;
55      }
56  
57      /***
58       * @hibernate.property length="2"
59       * 
60       * @return Returns the quantity.
61       */
62      public BigDecimal getQuantity() {
63          return quantity;
64      }
65  
66  }