介绍了hibernate的入门有一些基本常用的事例
源代码在线查看: product.java
//$Id: Product.java,v 1.2 2005/02/12 07:27:28 steveebersole Exp $ package org.hibernate.test.mapcompelem; import java.util.HashMap; import java.util.Map; /** * @author Gavin King */ public class Product { private String name; private Map parts = new HashMap(); Product() {} public Product(String n) { name = n; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Map getParts() { return parts; } public void setParts(Map users) { this.parts = users; } }