KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > legacy > Detail


1 //$Id: Detail.java,v 1.1 2004/09/26 05:18:25 oneovthafew Exp $
2
package org.hibernate.test.legacy;
3
4 import java.io.Serializable JavaDoc;
5 import java.util.HashSet JavaDoc;
6 import java.util.Set JavaDoc;
7
8 public class Detail implements Serializable JavaDoc {
9     
10     private Master master;
11     private int i;
12     private Set JavaDoc details = new HashSet JavaDoc();
13     private int x;
14     
15     public int getX() {
16         return x;
17     }
18     public void setX(int x) {
19         this.x = x;
20     }
21     
22     public Master getMaster() {
23         return master;
24     }
25     
26     public void setMaster(Master master) {
27         this.master = master;
28     }
29     
30     public int getI() {
31         return i;
32     }
33     
34     public void setI(int i) {
35         this.i = i;
36     }
37     
38     /**
39      * Returns the details.
40      * @return Set
41      */

42     public Set JavaDoc getSubDetails() {
43         return details;
44     }
45     
46     /**
47      * Sets the details.
48      * @param details The details to set
49      */

50     public void setSubDetails(Set JavaDoc details) {
51         this.details = details;
52     }
53     
54 }
55
56
57
58
59
60
61
Popular Tags