hz-zhhq-app-service/greenH5modul/.svn/pristine/75/75f8c2d92a8f5c2084cde26d543...

223 lines
4.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.nationalelectric.greenH5.po;
//导入 java 类
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.*;
import org.apache.commons.lang.builder.EqualsBuilder;
/**
* GreenFoodLottery的POJO类
*
* @author hyj
*/
public class GreenFoodLottery implements Serializable{
/**
* 序列化
*/
private static final long serialVersionUID = 1L;
/**
* 属性id
*/
private String id;
/**
* 属性voteId
*/
private String featureId;
/**
* 属性gmtCreated
*/
private Timestamp gmtCreated;
/**
* 属性gmtModified
*/
private Timestamp gmtModified;
/**
* 属性isDeleted
*/
private Character isDeleted = 'N';
private String userId;
/**
* 属性activityNo
*/
private Integer activityNo;
/**
* GreenFoodLottery构造函数
*/
public GreenFoodLottery() {
super();
}
/**
* GreenFoodLottery完整的构造函数
*/
public GreenFoodLottery(String id,String featureId,Timestamp gmtCreated,Timestamp gmtModified,Character isDeleted){
this.id = id;
this.featureId = featureId;
this.gmtCreated = gmtCreated;
this.gmtModified = gmtModified;
this.isDeleted = isDeleted;
}
public Integer getActivityNo() {
return activityNo;
}
public void setActivityNo(Integer activityNo) {
this.activityNo = activityNo;
}
public static long getSerialversionuid() {
return serialVersionUID;
}
/**
* 属性 主键ID 的get方法
* @return String
*/
public String getId(){
return id;
}
/**
* 属性 主键ID 的set方法
* @return
*/
public void setId(String id){
if(id != null && id.trim().length() == 0){
this.id = null;
}else{
this.id = id;
}
}
/**
* 属性 投票菜品id 的get方法
* @return String
*/
public String getFeatureId(){
return featureId;
}
/**
* 属性 投票菜品id 的set方法
* @return
*/
public void setFeatureId(String featureId){
this.featureId = featureId;
}
/**
* 属性 创建时间 的get方法
* @return Timestamp
*/
public Timestamp getGmtCreated(){
return gmtCreated;
}
/**
* 属性 创建时间 的set方法
* @return
*/
public void setGmtCreated(Timestamp gmtCreated){
this.gmtCreated = gmtCreated;
}
/**
* 属性 修改时间 的get方法
* @return Timestamp
*/
public Timestamp getGmtModified(){
return gmtModified;
}
/**
* 属性 修改时间 的set方法
* @return
*/
public void setGmtModified(Timestamp gmtModified){
this.gmtModified = gmtModified;
}
/**
* 属性 是否删除Y/N默认N 的get方法
* @return Character
*/
public Character getIsDeleted(){
return isDeleted;
}
/**
* 属性 是否删除Y/N默认N 的set方法
* @return
*/
public void setIsDeleted(Character isDeleted){
this.isDeleted = isDeleted;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
/**
* Hibernate通过该方法判断对象是否相等
* @return boolean
*/
public boolean equals(Object o) {
if (this == o)
return true;
if (o == null || !(o instanceof GreenFoodLottery))
return false;
if(getId() == null)
return false;
GreenFoodLottery other = (GreenFoodLottery) o;
return new EqualsBuilder()
.append(this.getId(), other.getId())
.isEquals();
}
/**
* toString方法
* @return String
*/
public String toString(){
return new StringBuffer()
.append("id"+":"+getId())
.append("voteId"+":"+getFeatureId())
.append("gmtCreated"+":"+getGmtCreated())
.append("gmtModified"+":"+getGmtModified())
.append("isDeleted"+":"+getIsDeleted())
.toString();
}
/**
* hashcode方法
* @return int
*
*/
@Override
public int hashCode(){
return super.hashCode();
}
}