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

源代码在线查看: customer.java

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

相关代码

				//$Id: Customer.java,v 1.1 2004/08/17 12:10:31 oneovthafew Exp $
				package org.hibernate.test.joinedsubclass;
				
				/**
				 * @author Gavin King
				 */
				public class Customer extends Person {
					private Employee salesperson;
					private String comments;
				
					/**
					 * @return Returns the salesperson.
					 */
					public Employee getSalesperson() {
						return salesperson;
					}
					/**
					 * @param salesperson The salesperson to set.
					 */
					public void setSalesperson(Employee salesperson) {
						this.salesperson = salesperson;
					}
					/**
					 * @return Returns the comments.
					 */
					public String getComments() {
						return comments;
					}
					/**
					 * @param comments The comments to set.
					 */
					public void setComments(String comments) {
						this.comments = comments;
					}
				}
							

相关资源