介绍了hibernate的入门有一些基本常用的事例
源代码在线查看: customer.java
//$Id: Customer.java,v 1.1 2004/08/17 12:10:31 oneovthafew Exp $
package org.hibernate.test.join;
/**
* @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;
}
}