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