hz-zhhq-app-service/greenH5modul/.svn/pristine/0f/0f38aa3a916f294898fa1d008fc...

291 lines
5.1 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.util.*;
import org.apache.commons.lang.builder.EqualsBuilder;
/**
* GreenPermission的POJO类
*
* @author Feb
*/
public class GreenPermission implements Serializable{
/**
* 序列化
*/
private static final long serialVersionUID = 1L;
/**
* 属性id
*/
private Integer id;
/**
* 属性code
*/
private Integer code;
/**
* 属性name
*/
private String name;
/**
* 属性parentCode
*/
private Integer parentCode;
/**
* 属性pageUrl
*/
private String pageUrl;
/**
* 属性iconUrl
*/
private String iconUrl;
/**
* 属性type
*/
private Integer type;
/**
* 属性isOpen
*/
private Integer isOpen;
private Integer tipNum=0;
private String tipNumQuery;
private String deptId;
private Integer tipNumDate=0;
private List<GreenPermission> children;
public List<GreenPermission> getChildren() {
return children;
}
public void setChildren(List<GreenPermission> children) {
this.children = children;
}
public Integer getTipNumDate() {
return tipNumDate;
}
public void setTipNumDate(Integer tipNumDate) {
this.tipNumDate = tipNumDate;
}
public String getDeptId() {
return deptId;
}
public void setDeptId(String deptId) {
this.deptId = deptId;
}
public Integer getTipNum() {
return tipNum;
}
public void setTipNum(Integer tipNum) {
this.tipNum = tipNum;
}
public String getTipNumQuery() {
return tipNumQuery;
}
public void setTipNumQuery(String tipNumQuery) {
this.tipNumQuery = tipNumQuery;
}
/**
* GreenPermission构造函数
*/
public GreenPermission() {
super();
}
/**
* GreenPermission完整的构造函数
*/
public GreenPermission(Integer id){
this.id = id;
}
/**
* 属性 id 的get方法
* @return Integer
*/
public Integer getId(){
return id;
}
/**
* 属性 id 的set方法
* @return
*/
public void setId(Integer id){
this.id = id;
}
/**
* 属性 权限编码 的get方法
* @return Integer
*/
public Integer getCode(){
return code;
}
/**
* 属性 权限编码 的set方法
* @return
*/
public void setCode(Integer code){
this.code = code;
}
/**
* 属性 权限名称 的get方法
* @return String
*/
public String getName(){
return name;
}
/**
* 属性 权限名称 的set方法
* @return
*/
public void setName(String name){
this.name = name;
}
/**
* 属性 父级权限编码 的get方法
* @return Integer
*/
public Integer getParentCode(){
return parentCode;
}
/**
* 属性 父级权限编码 的set方法
* @return
*/
public void setParentCode(Integer parentCode){
this.parentCode = parentCode;
}
/**
* 属性 页面跳转地址 的get方法
* @return String
*/
public String getPageUrl(){
return pageUrl;
}
/**
* 属性 页面跳转地址 的set方法
* @return
*/
public void setPageUrl(String pageUrl){
this.pageUrl = pageUrl;
}
/**
* 属性 icon图标地址 的get方法
* @return String
*/
public String getIconUrl(){
return iconUrl;
}
/**
* 属性 icon图标地址 的set方法
* @return
*/
public void setIconUrl(String iconUrl){
this.iconUrl = iconUrl;
}
/**
* 属性 权限类型 1 .APP 2 .WEB 的get方法
* @return Integer
*/
public Integer getType(){
return type;
}
/**
* 属性 权限类型 1 .APP 2 .WEB 的set方法
* @return
*/
public void setType(Integer type){
this.type = type;
}
/**
* Hibernate通过该方法判断对象是否相等
* @return boolean
*/
public boolean equals(Object o) {
if (this == o)
return true;
if (o == null || !(o instanceof GreenPermission))
return false;
GreenPermission other = (GreenPermission) o;
return new EqualsBuilder()
.append(this.getId(), other.getId())
.isEquals();
}
/**
* toString方法
* @return String
*/
public String toString(){
return new StringBuffer()
.append("id"+":"+getId())
.append("code"+":"+getCode())
.append("name"+":"+getName())
.append("parentCode"+":"+getParentCode())
.append("pageUrl"+":"+getPageUrl())
.append("iconUrl"+":"+getIconUrl())
.append("type"+":"+getType())
.toString();
}
/**
* hashcode方法
* @return int
*
*/
@Override
public int hashCode(){
return super.hashCode();
}
public Integer getIsOpen() {
return isOpen;
}
public void setIsOpen(Integer isOpen) {
this.isOpen = isOpen;
}
}