KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > onetoonelink > Employee


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

7 public class Employee {
8     private Long JavaDoc id;
9     private Person person;
10     public Person getPerson() {
11         return person;
12     }
13     public void setPerson(Person person) {
14         this.person = person;
15     }
16     public Long JavaDoc getId() {
17         return id;
18     }
19     public void setId(Long JavaDoc id) {
20         this.id = id;
21     }
22 }
23
Popular Tags