介绍了hibernate的入门有一些基本常用的事例
源代码在线查看: person.java
//$Id: Person.java,v 1.2 2005/02/12 07:27:27 steveebersole Exp $ package org.hibernate.test.lazyonetoone; /** * @author Gavin King */ public class Person { private String name; private Employee employee; Person() {} public Person(String name) { this.name = name; } public Employee getEmployee() { return employee; } public void setEmployee(Employee employee) { this.employee = employee; } public String getName() { return name; } public void setName(String name) { this.name = name; } }