package com.nationalelectric.greenH5.po; //导入 java 类 import java.io.Serializable; import java.math.BigDecimal; import java.sql.Timestamp; import java.util.*; import org.apache.commons.lang.builder.EqualsBuilder; /** * GreenFoodFeature的POJO类 * * @author Administrator */ public class GreenFoodFeature implements Serializable{ /** * 序列化 */ private static final long serialVersionUID = 1L; /** * 属性id */ private String id; /** * 属性kinds */ private String kinds; /** * 属性foodName */ private String foodName; /** * 属性picture */ private String picture; /** * 属性pictureData */ private String pictureData; /** * 属性price */ private BigDecimal price; /** * 属性unit */ private String unit; /** * 属性uploadDate */ private String uploadDate; /** * 属性imgStatus */ private Integer imgStatus = 0; /** * 属性creator */ private String creator; /** * 属性modifier */ private String modifier; /** * 属性gmtCreated */ private Timestamp gmtCreated; /** * 属性gmtModified */ private Timestamp gmtModified; /** * 属性material */ private String material; /** * 属性reason */ private String reason; /** * 属性activityNo */ private Integer activityNo; private Integer voteNo; private Integer isRelease=0; /** * 属性isDeleted */ private Character isDeleted = 'N'; private int pageNum; private int pageSize; public Integer getVoteNo() { return voteNo; } public void setVoteNo(Integer voteNo) { this.voteNo = voteNo; } public Integer getIsRelease() { return isRelease; } public void setIsRelease(Integer isRelease) { this.isRelease = isRelease; } /** * GreenFoodFeature构造函数 */ public GreenFoodFeature() { super(); } /** * GreenFoodFeature完整的构造函数 */ public GreenFoodFeature(String id,String kinds,String foodName,String picture,BigDecimal price,String unit,String uploadDate,String creator,String modifier,Timestamp gmtCreated,Timestamp gmtModified,String material,String reason,Character isDeleted){ this.id = id; this.kinds = kinds; this.foodName = foodName; this.picture = picture; this.price = price; this.unit = unit; this.uploadDate = uploadDate; this.creator = creator; this.modifier = modifier; this.gmtCreated = gmtCreated; this.gmtModified = gmtModified; this.material = material; this.reason = reason; this.isDeleted = isDeleted; } public int getPageNum() { return pageNum; } public void setPageNum(int pageNum) { this.pageNum = pageNum; } public int getPageSize() { return pageSize; } public void setPageSize(int pageSize) { this.pageSize = pageSize; } /** * 属性 主键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; } } /** * 属性 菜品分类 的get方法 * @return String */ public String getKinds(){ return kinds; } /** * 属性 菜品分类 的set方法 * @return */ public void setKinds(String kinds){ this.kinds = kinds; } /** * 属性 菜品名称 的get方法 * @return String */ public String getFoodName(){ return foodName; } /** * 属性 菜品名称 的set方法 * @return */ public void setFoodName(String foodName){ this.foodName = foodName; } /** * 属性 菜品图片 的get方法 * @return String */ public String getPicture(){ return picture; } /** * 属性 菜品图片 的set方法 * @return */ public void setPicture(String picture){ this.picture = picture; } /** * 属性 文件外键 的get方法 * @return String */ public String getPictureData(){ return pictureData; } /** * 属性 文件外键 的set方法 * @return */ public void setPictureData(String pictureData){ this.pictureData = pictureData; } /** * 属性 菜品单价 的get方法 * @return BigDecimal */ public BigDecimal getPrice(){ return price; } /** * 属性 菜品单价 的set方法 * @return */ public void setPrice(BigDecimal price){ this.price = price; } /** * 属性 计价单位 的get方法 * @return String */ public String getUnit(){ return unit; } /** * 属性 计价单位 的set方法 * @return */ public void setUnit(String unit){ this.unit = unit; } /** * 属性 上传日期 的get方法 * @return String */ public String getUploadDate(){ return uploadDate; } /** * 属性 上传日期 的set方法 * @return */ public void setUploadDate(String uploadDate){ this.uploadDate = uploadDate; } /** * 属性 图片存储磁盘状态0-默认初始1-app存储完成2-web存储完成 的get方法 * @return Integer */ public Integer getImgStatus(){ return imgStatus; } /** * 属性 图片存储磁盘状态0-默认初始1-app存储完成2-web存储完成 的set方法 * @return */ public void setImgStatus(Integer imgStatus){ this.imgStatus = imgStatus; } /** * 属性 创建者 的get方法 * @return String */ public String getCreator(){ return creator; } /** * 属性 创建者 的set方法 * @return */ public void setCreator(String creator){ this.creator = creator; } /** * 属性 修改者 的get方法 * @return String */ public String getModifier(){ return modifier; } /** * 属性 修改者 的set方法 * @return */ public void setModifier(String modifier){ this.modifier = modifier; } /** * 属性 创建时间 的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; } /** * 属性 食材 的get方法 * @return String */ public String getMaterial(){ return material; } /** * 属性 食材 的set方法 * @return */ public void setMaterial(String material){ this.material = material; } /** * 属性 理由 的get方法 * @return String */ public String getReason(){ return reason; } /** * 属性 理由 的set方法 * @return */ public void setReason(String reason){ this.reason = reason; } /** * 属性 第几期活动 的get方法 * @return Integer */ public Integer getActivityNo(){ return activityNo; } /** * 属性 第几期活动 的set方法 * @return */ public void setActivityNo(Integer activityNo){ this.activityNo = activityNo; } /** * 属性 是否删除Y/N,默认N 的get方法 * @return Character */ public Character getIsDeleted(){ return isDeleted; } /** * 属性 是否删除Y/N,默认N 的set方法 * @return */ public void setIsDeleted(Character isDeleted){ this.isDeleted = isDeleted; } /** * Hibernate通过该方法判断对象是否相等 * @return boolean */ public boolean equals(Object o) { if (this == o) return true; if (o == null || !(o instanceof GreenFoodFeature)) return false; if(getId() == null) return false; GreenFoodFeature other = (GreenFoodFeature) o; return new EqualsBuilder() .append(this.getId(), other.getId()) .isEquals(); } /** * toString方法 * @return String */ public String toString(){ return new StringBuffer() .append("id"+":"+getId()) .append("kinds"+":"+getKinds()) .append("foodName"+":"+getFoodName()) .append("picture"+":"+getPicture()) .append("pictureData"+":"+getPictureData()) .append("price"+":"+getPrice()) .append("unit"+":"+getUnit()) .append("uploadDate"+":"+getUploadDate()) .append("imgStatus"+":"+getImgStatus()) .append("creator"+":"+getCreator()) .append("modifier"+":"+getModifier()) .append("gmtCreated"+":"+getGmtCreated()) .append("gmtModified"+":"+getGmtModified()) .append("material"+":"+getMaterial()) .append("reason"+":"+getReason()) .append("activityNo"+":"+getActivityNo()) .append("isDeleted"+":"+getIsDeleted()) .toString(); } /** * hashcode方法 * @return int * */ @Override public int hashCode(){ return super.hashCode(); } }