package com.zheng.ucenter.dao.model;
import java.io.Serializable;
import java.util.Date;
public class UcenterUserDetails implements Serializable {
/**
* 编号
*
* @mbg.generated
*/
private Integer userId;
/**
* 个性签名
*
* @mbg.generated
*/
private String signature;
/**
* 真实姓名
*
* @mbg.generated
*/
private String realName;
/**
* 出生日期
*
* @mbg.generated
*/
private Date birthday;
/**
* 帐号安全问题
*
* @mbg.generated
*/
private String question;
/**
* 帐号安全答案
*
* @mbg.generated
*/
private String answer;
private static final long serialVersionUID = 1L;
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public String getSignature() {
return signature;
}
public void setSignature(String signature) {
this.signature = signature;
}
public String getRealName() {
return realName;
}
public void setRealName(String realName) {
this.realName = realName;
}
public Date getBirthday() {
return birthday;
}
public void setBirthday(Date birthday) {
this.birthday = birthday;
}
public String getQuestion() {
return question;
}
public void setQuestion(String question) {
this.question = question;
}
public String getAnswer() {
return answer;
}
public void setAnswer(String answer) {
this.answer = answer;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", userId=").append(userId);
sb.append(", signature=").append(signature);
sb.append(", realName=").append(realName);
sb.append(", birthday=").append(birthday);
sb.append(", question=").append(question);
sb.append(", answer=").append(answer);
sb.append("]");
return sb.toString();
}
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
UcenterUserDetails other = (UcenterUserDetails) that;
return (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
&& (this.getSignature() == null ? other.getSignature() == null : this.getSignature().equals(other.getSignature()))
&& (this.getRealName() == null ? other.getRealName() == null : this.getRealName().equals(other.getRealName()))
&& (this.getBirthday() == null ? other.getBirthday() == null : this.getBirthday().equals(other.getBirthday()))
&& (this.getQuestion() == null ? other.getQuestion() == null : this.getQuestion().equals(other.getQuestion()))
&& (this.getAnswer() == null ? other.getAnswer() == null : this.getAnswer().equals(other.getAnswer()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
result = prime * result + ((getSignature() == null) ? 0 : getSignature().hashCode());
result = prime * result + ((getRealName() == null) ? 0 : getRealName().hashCode());
result = prime * result + ((getBirthday() == null) ? 0 : getBirthday().hashCode());
result = prime * result + ((getQuestion() == null) ? 0 : getQuestion().hashCode());
result = prime * result + ((getAnswer() == null) ? 0 : getAnswer().hashCode());
return result;
}
}