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

源代码在线查看: user.java

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

相关代码

				//$Id: User.java,v 1.2 2005/02/12 07:27:28 steveebersole Exp $				package org.hibernate.test.map;								import java.util.HashMap;				import java.util.Map;								/**				 * @author Gavin King				 */				public class User {					private String name;					private String password;					private Map session = new HashMap();					User() {}					public User(String n, String pw) {						name=n;						password = pw;					}					public String getName() {						return name;					}					public void setName(String name) {						this.name = name;					}					public String getPassword() {						return password;					}					public void setPassword(String password) {						this.password = password;					}					public Map getSession() {						return session;					}					public void setSession(Map session) {						this.session = session;					}				}							

相关资源