KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Product.java,v 1.2 2005/02/12 07:27:28 steveebersole Exp $
2
package org.hibernate.test.mapcompelem;
3
4 import java.util.HashMap JavaDoc;
5 import java.util.Map JavaDoc;
6
7 /**
8  * @author Gavin King
9  */

10 public class Product {
11     private String JavaDoc name;
12     private Map JavaDoc parts = new HashMap JavaDoc();
13     Product() {}
14     public Product(String JavaDoc n) {
15         name = n;
16     }
17     public String JavaDoc getName() {
18         return name;
19     }
20     public void setName(String JavaDoc name) {
21         this.name = name;
22     }
23     public Map JavaDoc getParts() {
24         return parts;
25     }
26     public void setParts(Map JavaDoc users) {
27         this.parts = users;
28     }
29 }
30
Popular Tags