KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > mapcompelem > Item


1 //$Id: Item.java,v 1.1 2005/03/29 03:20:23 oneovthafew Exp $
2
package org.hibernate.test.mapcompelem;
3
4 /**
5  * @author Gavin King
6  */

7 public class Item {
8
9     private String JavaDoc code;
10     private Product product;
11     
12     
13     Item() {}
14     public Item(String JavaDoc code, Product p) {
15         this.code = code;
16         this.product = p;
17     }
18
19     public String JavaDoc getCode() {
20         return code;
21     }
22     
23     public void setCode(String JavaDoc code) {
24         this.code = code;
25     }
26     
27     public Product getProduct() {
28         return product;
29     }
30     
31     public void setProduct(Product product) {
32         this.product = product;
33     }
34     
35 }
36
Popular Tags