hz-zhhq-app-service/greenH5modul/.svn/pristine/91/91bfef41ccf997e70bb5ee8acc0...

204 lines
3.7 KiB
Plaintext

package com.nationalelectric.greenH5.po;
//导入 java 类
import java.io.Serializable;
import java.util.*;
import org.apache.commons.lang.builder.EqualsBuilder;
/**
* GreenActiveSign的POJO类
*
* @author wjx
*/
public class GreenActiveSign implements Serializable{
/**
* 序列化
*/
private static final long serialVersionUID = 1L;
/**
* 属性id
*/
private Long id = Long.valueOf("0");
/**
* 属性activeId
*/
private Long activeId;
/**
* 属性userId
*/
private String userId;
/**
* 属性status
*/
private Integer status = 0;
/**
* 属性signUpTime
*/
private Date signUpTime = new Date();
/**
* 属性signInTime
*/
private Date signInTime;
/**
* GreenActiveSign构造函数
*/
public GreenActiveSign() {
super();
}
/**
* GreenActiveSign完整的构造函数
*/
public GreenActiveSign(Long id){
this.id = id;
}
/**
* 属性 id 的get方法
* @return Long
*/
public Long getId(){
return id;
}
/**
* 属性 id 的set方法
* @return
*/
public void setId(Long id){
this.id = id;
}
/**
* 属性 active_id 的get方法
* @return Long
*/
public Long getActiveId(){
return activeId;
}
/**
* 属性 active_id 的set方法
* @return
*/
public void setActiveId(Long activeId){
this.activeId = activeId;
}
/**
* 属性 user_id 的get方法
* @return String
*/
public String getUserId(){
return userId;
}
/**
* 属性 user_id 的set方法
* @return
*/
public void setUserId(String userId){
this.userId = userId;
}
/**
* 属性 0已报名 1已签到 2已取消 的get方法
* @return Integer
*/
public Integer getStatus(){
return status;
}
/**
* 属性 0已报名 1已签到 2已取消 的set方法
* @return
*/
public void setStatus(Integer status){
this.status = status;
}
/**
* 属性 报名时间 的get方法
* @return Date
*/
public Date getSignUpTime(){
return signUpTime;
}
/**
* 属性 报名时间 的set方法
* @return
*/
public void setSignUpTime(Date signUpTime){
this.signUpTime = signUpTime;
}
/**
* 属性 签到时间 的get方法
* @return Date
*/
public Date getSignInTime(){
return signInTime;
}
/**
* 属性 签到时间 的set方法
* @return
*/
public void setSignInTime(Date signInTime){
this.signInTime = signInTime;
}
/**
* Hibernate通过该方法判断对象是否相等
* @return boolean
*/
public boolean equals(Object o) {
if (this == o)
return true;
if (o == null || !(o instanceof GreenActiveSign))
return false;
GreenActiveSign other = (GreenActiveSign) o;
return new EqualsBuilder()
.append(this.getId(), other.getId())
.isEquals();
}
/**
* toString方法
* @return String
*/
public String toString(){
return new StringBuffer()
.append("id"+":"+getId())
.append("activeId"+":"+getActiveId())
.append("userId"+":"+getUserId())
.append("status"+":"+getStatus())
.append("signUpTime"+":"+getSignUpTime())
.append("signInTime"+":"+getSignInTime())
.toString();
}
/**
* hashcode方法
* @return int
*
*/
@Override
public int hashCode(){
return super.hashCode();
}
}