KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Child.java,v 1.2 2005/02/12 07:27:31 steveebersole Exp $
2
package org.hibernate.test.unidir;
3
4
5 /**
6  * @author Gavin King
7  */

8 public class Child {
9     private String JavaDoc name;
10     private int age;
11     Child() {}
12     public Child(String JavaDoc name) {
13         this.name = name;
14     }
15     public String JavaDoc getName() {
16         return name;
17     }
18     public void setName(String JavaDoc name) {
19         this.name = name;
20     }
21     public int getAge() {
22         return age;
23     }
24     public void setAge(int age) {
25         this.age = age;
26     }
27 }
28
Popular Tags