userpo.java

来自「一个bbs论坛系统」· Java 代码 · 共 301 行

JAVA
301
字号
package com.lovo.po;

import java.util.List;

/**
 * <p>
 * Copyright (C),2008,9
 * 
 * Filename: UserPO
 * 
 * Description: 用户组
 * 
 * @author lovo39部5组
 */
public class UserPO {

	/** 用户的ID */
	private int id;

	/** 用户等级 */
	private LevelPO level;

	/** 版主标志位 */
	private int blockFlag;

	/** 区主标志位 */
	private int areaFlag;

	/** 管理员标志位 */
	private int adminFlag;
	
	/** 锁定标志位 */
	private int lockFlag;

	/** 用户的积分 */
	private int score;

	/** 用户的财富 */
	private int wealth;
	
	/** 用户威望 */
	private int prestige;

	/** 用户头像图片 */
	private ImgPO img;

	/** 用户的名字 */
	private String name;

	/** 用户注册时间 */
	private String registerTime;

	/** 用户的密码 */
	private String password;

	/** 用户的找回密码提示问题 */
	private String problem;

	/** 用户的找回密码问题的答案 */
	private String result;

	/** 用户的邮箱 */
	private String email;
	
	private UserTypePO userType;

	/** 属于那个版块 */
	private BlockPO block;

	/** 属于哪个区域 */
	private AreaPO area;

	/** 在哪个聊天室 */
	private ChatroomPO chatroom;

	/** 用户的收到的消息列表 */
	private List<MessagePO> msgList;

	/** 用户的回复的帖子列表 */
	private List<ReplyPO> replyList;

	/** 用户的发表的主题列表 */
	private List<PublishPO> publishList;

	public int getAdminFlag() {
		return adminFlag;
	}

	public void setAdminFlag(int adminFlag) {
		this.adminFlag = adminFlag;
	}

	public AreaPO getArea() {
		return area;
	}

	public void setArea(AreaPO area) {
		this.area = area;
	}

	public int getAreaFlag() {
		return areaFlag;
	}

	public void setAreaFlag(int areaFlag) {
		this.areaFlag = areaFlag;
	}

	public BlockPO getBlock() {
		return block;
	}

	public void setBlock(BlockPO block) {
		this.block = block;
	}

	public int getBlockFlag() {
		return blockFlag;
	}

	public void setBlockFlag(int blockFlag) {
		this.blockFlag = blockFlag;
	}

	public ChatroomPO getChatroom() {
		return chatroom;
	}

	public void setChatroom(ChatroomPO chatroom) {
		this.chatroom = chatroom;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public int getId() {
		return id;
	}

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

	public ImgPO getImg() {
		return img;
	}

	public void setImg(ImgPO img) {
		this.img = img;
	}

	public LevelPO getLevel() {
		return level;
	}

	public void setLevel(LevelPO level) {
		this.level = level;
	}

	public List<MessagePO> getMsgList() {
		return msgList;
	}

	public void setMsgList(List<MessagePO> msgList) {
		this.msgList = msgList;
	}

	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 String getProblem() {
		return problem;
	}

	public void setProblem(String problem) {
		this.problem = problem;
	}

	public List<PublishPO> getPublishList() {
		return publishList;
	}

	public void setPublishList(List<PublishPO> publishList) {
		this.publishList = publishList;
	}

	public String getRegisterTime() {
		return registerTime;
	}

	public void setRegisterTime(String registerTime) {
		this.registerTime = registerTime;
	}

	public List<ReplyPO> getReplyList() {
		return replyList;
	}

	public void setReplyList(List<ReplyPO> replyList) {
		this.replyList = replyList;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public int getWealth() {
		return wealth;
	}

	public void setWealth(int wealth) {
		this.wealth = wealth;
	}

	public int getLockFlag() {
		return lockFlag;
	}

	public void setLockFlag(int lockFlag) {
		this.lockFlag = lockFlag;
	}

	public UserTypePO getUserType() {
		return userType;
	}

	public void setUserType(UserTypePO userType) {
		this.userType = userType;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final UserPO other = (UserPO) obj;
		if (id != other.id)
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		return true;
	}

	public int getPrestige() {
		return prestige;
	}

	public void setPrestige(int prestige) {
		this.prestige = prestige;
	}

	

	
}

⌨️ 快捷键说明

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