介绍了hibernate的入门有一些基本常用的事例
源代码在线查看: product.java
//$Id: Product.java,v 1.1 2005/02/14 12:10:15 oneovthafew Exp $
package org.hibernate.test.orphan;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
/**
* @author Gavin King
*/
public class Product implements Serializable {
private String name;
private Set parts = new HashSet();
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Set getParts() {
return parts;
}
public void setParts(Set parts) {
this.parts = parts;
}
}