KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > cid > Product


1 //$Id: Product.java,v 1.2 2004/11/25 14:37:00 steveebersole Exp $
2
package org.hibernate.test.cid;
3
4 import java.math.BigDecimal JavaDoc;
5
6 /**
7  * @author Gavin King
8  */

9 public class Product {
10     private String JavaDoc productId;
11     private String JavaDoc description;
12     private BigDecimal JavaDoc price;
13     private int numberAvailable;
14     private int numberOrdered;
15     /**
16      * @return Returns the description.
17      */

18     public String JavaDoc getDescription() {
19         return description;
20     }
21     /**
22      * @param description The description to set.
23      */

24     public void setDescription(String JavaDoc description) {
25         this.description = description;
26     }
27     /**
28      * @return Returns the numberAvailable.
29      */

30     public int getNumberAvailable() {
31         return numberAvailable;
32     }
33     /**
34      * @param numberAvailable The numberAvailable to set.
35      */

36     public void setNumberAvailable(int numberAvailable) {
37         this.numberAvailable = numberAvailable;
38     }
39     /**
40      * @return Returns the numberOrdered.
41      */

42     public int getNumberOrdered() {
43         return numberOrdered;
44     }
45     /**
46      * @param numberOrdered The numberOrdered to set.
47      */

48     public void setNumberOrdered(int numberOrdered) {
49         this.numberOrdered = numberOrdered;
50     }
51     /**
52      * @return Returns the productId.
53      */

54     public String JavaDoc getProductId() {
55         return productId;
56     }
57     /**
58      * @param productId The productId to set.
59      */

60     public void setProductId(String JavaDoc productId) {
61         this.productId = productId;
62     }
63     /**
64      * @return Returns the price.
65      */

66     public BigDecimal JavaDoc getPrice() {
67         return price;
68     }
69     /**
70      * @param price The price to set.
71      */

72     public void setPrice(BigDecimal JavaDoc price) {
73         this.price = price;
74     }
75 }
76
Popular Tags