介绍了hibernate的入门有一些基本常用的事例

源代码在线查看: employee.java

软件大小: 17462 K
上传用户: qingmei_changle
关键词: hibernate
下载地址: 免注册下载 普通下载 VIP

相关代码

				//$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;					}				}							

相关资源