介绍了hibernate的入门有一些基本常用的事例
源代码在线查看: employee.java
//$Id: Employee.java,v 1.3 2005/02/12 07:27:31 steveebersole Exp $ package org.hibernate.test.ternary; import java.util.Date; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; /** * @author Gavin King */ public class Employee { private String name; private Date hireDate; private Map managerBySite = new HashMap(); private Set underlings = new HashSet(); Employee() {} public Employee(String name) { this.name=name; } public Map getManagerBySite() { return managerBySite; } public void setManagerBySite(Map managerBySite) { this.managerBySite = managerBySite; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Set getUnderlings() { return underlings; } public void setUnderlings(Set underlings) { this.underlings = underlings; } public Date getHireDate() { return hireDate; } public void setHireDate(Date hireDate) { this.hireDate = hireDate; } }