⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 user.java

📁 本系统是网上购物的详细代码
💻 JAVA
字号:
package cn.com.tarena.ecport.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * <pre>
 * 用户Pojo
 * 此Pojo映射数据库中的User表
 * </pre>
 * 
 * @author zhouyu 2008-1-16
 */
public class User extends BasePojo {

	private static final long serialVersionUID = -1043017613884811033L;

	private String userid;
	private String password;
	// private Set contactinfos = new HashSet(0);
	private Set<Orders> orderses = new HashSet<Orders>(0);
	private ContactInfo contactinfo;

	// Constructors

	/** default constructor */
	public User() {
	}

	/** minimal constructor */
	public User(String userid, String password) {
		this.userid = userid;
		this.password = password;
	}

	/** full constructor */
	public User(String userid, String password, Set<Orders> orderses,
			ContactInfo contactinfo) {
		this.userid = userid;
		this.password = password;
		this.orderses = orderses;
		this.contactinfo = contactinfo;
	}

	// Property accessors

	public String getUserid() {
		return this.userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Set<Orders> getOrderses() {
		return this.orderses;
	}

	public void setOrderses(Set<Orders> orderses) {
		this.orderses = orderses;
	}

	/*
	 * public Set getContactinfos() { return this.contactinfos; }
	 * 
	 * public void setContactinfos(Set contactinfos) { this.contactinfos =
	 * contactinfos; }
	 */

	/**
	 * @return the contactinfo
	 */
	public ContactInfo getContactinfo() {
		return contactinfo;
	}

	/**
	 * @param contactinfo
	 *            the contactinfo to set
	 */
	public void setContactinfo(ContactInfo contactinfo) {
		this.contactinfo = contactinfo;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -