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

源代码在线查看: person.java

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

相关代码

				//$Id: Person.java,v 1.1 2005/04/03 03:56:22 oneovthafew Exp $
				package org.hibernate.test.unconstrained;
				
				/**
				 * @author Gavin King
				 */
				public class Person {
					
					private String name;
					private String employeeId;
					private Employee employee;
				
					public Person() {}
					public Person(String name) {
						this.name = name;
					}
					
					public Employee getEmployee() {
						return employee;
					}
					
					public void setEmployee(Employee employee) {
						this.employee = employee;
					}
					
					public String getEmployeeId() {
						return employeeId;
					}
					
					public void setEmployeeId(String employeeId) {
						this.employeeId = employeeId;
					}
					
					public String getName() {
						return name;
					}
					
					public void setName(String name) {
						this.name = name;
					}
					
				
				}
							

相关资源