KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > tapestry > pets > domain > model > IItem


1 /*
2  * Created on Apr 30, 2004
3  */

4 package org.apache.tapestry.pets.domain.model;
5
6 import java.math.BigDecimal JavaDoc;
7
8
9
10
11 /**
12  * @author admin
13  *
14  * TODO To change the template for this generated type comment go to
15  * Window - Preferences - Java - Code Generation - Code and Comments
16  */

17 public interface IItem {
18
19     /**
20      * @hibernate.id
21      * generator-class="assigned"
22      * type="java.lang.String"
23      * column="itemid"
24      *
25      */

26     public abstract String JavaDoc getItemid();
27
28     public abstract void setItemid(String JavaDoc itemid);
29
30     /**
31      * @hibernate.property
32      * column="listprice"
33      * length="10"
34      * not-null="true"
35      *
36      */

37     public abstract BigDecimal JavaDoc getListprice();
38
39     public abstract void setListprice(BigDecimal JavaDoc listprice);
40
41     /**
42      * @hibernate.property
43      * column="unitcost"
44      * length="10"
45      * not-null="true"
46      *
47      */

48     public abstract BigDecimal JavaDoc getUnitcost();
49
50     public abstract void setUnitcost(BigDecimal JavaDoc unitcost);
51
52     /**
53      * @hibernate.property
54      * column="qty"
55      * length="11"
56      * not-null="true"
57      *
58      */

59     public abstract int getQty();
60
61     public abstract void setQty(int qty);
62
63     /**
64      * @hibernate.many-to-one
65      * @hibernate.column name="productid"
66      *
67      */

68     public abstract org.apache.tapestry.pets.domain.model.IProduct getProduct();
69
70     public abstract void setProduct(
71             org.apache.tapestry.pets.domain.model.IProduct product);
72
73     /**
74      * @hibernate.many-to-one
75      * @hibernate.column name="suppid"
76      *
77      */

78     public abstract johnmammen.betterpetshop.bo.Supplier getSupplier();
79
80     public abstract void setSupplier(
81             johnmammen.betterpetshop.bo.Supplier supplier);
82
83     public abstract String JavaDoc toString();
84 }
Popular Tags