KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Child.java,v 1.1 2004/09/26 05:18:25 oneovthafew Exp $
2
package org.hibernate.test.legacy;
3
4 public class Child {
5     private Parent parent;
6     private int count;
7     private int x;
8     
9     public int getX() {
10         return x;
11     }
12     public void setX(int x) {
13         this.x = x;
14     }
15     
16     public Parent getParent() {
17         return parent;
18     }
19     
20     
21     public void setParent(Parent parent) {
22         this.parent = parent;
23     }
24     
25     
26     public int getCount() {
27         return count;
28     }
29     
30     
31     public void setCount(int count) {
32         this.count = count;
33     }
34     
35     public long getId() {
36         return parent.getId();
37     }
38     private void setId(long id) {
39     }
40     
41 }
42
43
44
45
46
47
48
49
Popular Tags