user.java

来自「当下流行的struts2的一个简单应用」· Java 代码 · 共 68 行

JAVA
68
字号
package com.jack.user.pojo;

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

/**
 * User entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	private String id;
	private String userName;
	private String password;
	private Set userInfors = new HashSet(0);

	// Constructors

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

	/** full constructor */
	public User(String userName, String password, Set userInfors) {
		this.userName = userName;
		this.password = password;
		this.userInfors = userInfors;
	}

	// Property accessors

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

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

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

	public Set getUserInfors() {
		return this.userInfors;
	}

	public void setUserInfors(Set userInfors) {
		this.userInfors = userInfors;
	}

}

⌨️ 快捷键说明

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