KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Product.java,v 1.1 2005/02/14 12:10:15 oneovthafew Exp $
2
package org.hibernate.test.orphan;
3
4 import java.io.Serializable JavaDoc;
5 import java.util.HashSet JavaDoc;
6 import java.util.Set JavaDoc;
7
8 /**
9  * @author Gavin King
10  */

11 public class Product implements Serializable JavaDoc {
12     private String JavaDoc name;
13     private Set JavaDoc parts = new HashSet JavaDoc();
14     public String JavaDoc getName() {
15         return name;
16     }
17     public void setName(String JavaDoc name) {
18         this.name = name;
19     }
20     public Set JavaDoc getParts() {
21         return parts;
22     }
23     public void setParts(Set JavaDoc parts) {
24         this.parts = parts;
25     }
26 }
27
Popular Tags