介绍了hibernate的入门有一些基本常用的事例
源代码在线查看: employee.java
//$Id: Employee.java,v 1.3 2005/02/12 07:27:30 steveebersole Exp $ package org.hibernate.test.ops; import java.util.Collection; import java.io.Serializable; /** * Employee in an Employer-Employee relationship * * @author Emmanuel Bernard */ public class Employee implements Serializable { private Integer id; private Collection employers; public Integer getId() { return id; } public void setId(Integer integer) { id = integer; } public Collection getEmployers() { return employers; } public void setEmployers(Collection employers) { this.employers = employers; } }