KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > batchfetch > Model


1 //$Id: Model.java,v 1.1 2004/08/29 12:04:14 oneovthafew Exp $
2
package org.hibernate.test.batchfetch;
3
4 /**
5  * @author Gavin King
6  */

7 public class Model {
8     private String JavaDoc id;
9     private String JavaDoc name;
10     private String JavaDoc description;
11     private ProductLine productLine;
12     
13     Model() {}
14     
15     public Model(ProductLine pl) {
16         this.productLine = pl;
17         pl.getModels().add(this);
18     }
19     
20     public String JavaDoc getDescription() {
21         return description;
22     }
23     public void setDescription(String JavaDoc description) {
24         this.description = description;
25     }
26     public String JavaDoc getId() {
27         return id;
28     }
29     public void setId(String JavaDoc id) {
30         this.id = id;
31     }
32     public String JavaDoc getName() {
33         return name;
34     }
35     public void setName(String JavaDoc name) {
36         this.name = name;
37     }
38     public ProductLine getProductLine() {
39         return productLine;
40     }
41     public void setProductLine(ProductLine productLine) {
42         this.productLine = productLine;
43     }
44 }
45
Popular Tags