KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > johnmammen > betterpetshop > bo > Supplier


1 package johnmammen.betterpetshop.bo;
2
3 import java.io.Serializable JavaDoc;
4 import org.apache.commons.lang.builder.ToStringBuilder;
5
6
7 /**
8  * @hibernate.class
9  * table="supplier"
10  *
11 */

12 public class Supplier implements Serializable JavaDoc {
13
14     /** identifier field */
15     private Integer JavaDoc suppid;
16
17     /** persistent field */
18     private String JavaDoc name;
19
20     /** nullable persistent field */
21     private String JavaDoc status;
22
23     /** nullable persistent field */
24     private String JavaDoc addr1;
25
26     /** nullable persistent field */
27     private String JavaDoc addr2;
28
29     /** nullable persistent field */
30     private String JavaDoc city;
31
32     /** nullable persistent field */
33     private String JavaDoc state;
34
35     /** nullable persistent field */
36     private String JavaDoc zip;
37
38     /** nullable persistent field */
39     private String JavaDoc phone;
40
41     /** full constructor */
42     public Supplier(Integer JavaDoc suppid, String JavaDoc name, String JavaDoc status, String JavaDoc addr1, String JavaDoc addr2, String JavaDoc city, String JavaDoc state, String JavaDoc zip, String JavaDoc phone) {
43         this.suppid = suppid;
44         this.name = name;
45         this.status = status;
46         this.addr1 = addr1;
47         this.addr2 = addr2;
48         this.city = city;
49         this.state = state;
50         this.zip = zip;
51         this.phone = phone;
52     }
53
54     /** default constructor */
55     public Supplier() {
56     }
57
58     /** minimal constructor */
59     public Supplier(Integer JavaDoc suppid, String JavaDoc name) {
60         this.suppid = suppid;
61         this.name = name;
62     }
63
64     /**
65      * @hibernate.id
66      * generator-class="assigned"
67      * type="java.lang.Integer"
68      * column="suppid"
69      *
70      */

71     public Integer JavaDoc getSuppid() {
72         return this.suppid;
73     }
74
75     public void setSuppid(Integer JavaDoc suppid) {
76         this.suppid = suppid;
77     }
78
79     /**
80      * @hibernate.property
81      * column="name"
82      * length="80"
83      * not-null="true"
84      *
85      */

86     public String JavaDoc getName() {
87         return this.name;
88     }
89
90     public void setName(String JavaDoc name) {
91         this.name = name;
92     }
93
94     /**
95      * @hibernate.property
96      * column="status"
97      * length="2"
98      *
99      */

100     public String JavaDoc getStatus() {
101         return this.status;
102     }
103
104     public void setStatus(String JavaDoc status) {
105         this.status = status;
106     }
107
108     /**
109      * @hibernate.property
110      * column="addr1"
111      * length="80"
112      *
113      */

114     public String JavaDoc getAddr1() {
115         return this.addr1;
116     }
117
118     public void setAddr1(String JavaDoc addr1) {
119         this.addr1 = addr1;
120     }
121
122     /**
123      * @hibernate.property
124      * column="addr2"
125      * length="80"
126      *
127      */

128     public String JavaDoc getAddr2() {
129         return this.addr2;
130     }
131
132     public void setAddr2(String JavaDoc addr2) {
133         this.addr2 = addr2;
134     }
135
136     /**
137      * @hibernate.property
138      * column="city"
139      * length="80"
140      *
141      */

142     public String JavaDoc getCity() {
143         return this.city;
144     }
145
146     public void setCity(String JavaDoc city) {
147         this.city = city;
148     }
149
150     /**
151      * @hibernate.property
152      * column="state"
153      * length="80"
154      *
155      */

156     public String JavaDoc getState() {
157         return this.state;
158     }
159
160     public void setState(String JavaDoc state) {
161         this.state = state;
162     }
163
164     /**
165      * @hibernate.property
166      * column="zip"
167      * length="5"
168      *
169      */

170     public String JavaDoc getZip() {
171         return this.zip;
172     }
173
174     public void setZip(String JavaDoc zip) {
175         this.zip = zip;
176     }
177
178     /**
179      * @hibernate.property
180      * column="phone"
181      * length="80"
182      *
183      */

184     public String JavaDoc getPhone() {
185         return this.phone;
186     }
187
188     public void setPhone(String JavaDoc phone) {
189         this.phone = phone;
190     }
191
192     public String JavaDoc toString() {
193         return new ToStringBuilder(this)
194             .append("suppid", getSuppid())
195             .toString();
196     }
197
198 }
199
Popular Tags