⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 abstractrolepower.java

📁 Struts_Spring_Hibernate实现的基于RBAC的权限管理系统
💻 JAVA
字号:
package com.xaccp.biz.po;
// default package



/**
 * AbstractRolePower generated by MyEclipse - Hibernate Tools
 */

public abstract class AbstractRolePower  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private Power tblPower;
     private Role tblRole;
     private Integer state;


    // Constructors

    /** default constructor */
    public AbstractRolePower() {
    }

    
    /** full constructor */
    public AbstractRolePower(Power tblPower, Role tblRole, Integer state) {
        this.tblPower = tblPower;
        this.tblRole = tblRole;
        this.state = state;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public Power getTblPower() {
        return this.tblPower;
    }
    
    public void setTblPower(Power tblPower) {
        this.tblPower = tblPower;
    }

    public Role getTblRole() {
        return this.tblRole;
    }
    
    public void setTblRole(Role tblRole) {
        this.tblRole = tblRole;
    }

    public Integer getState() {
        return this.state;
    }
    
    public void setState(Integer state) {
        this.state = state;
    }


	@Override
	public int hashCode() {
		final int PRIME = 31;
		int result = 1;
		result = PRIME * result + ((id == null) ? 0 : id.hashCode());
		result = PRIME * result + ((tblPower == null) ? 0 : tblPower.hashCode());
		result = PRIME * result + ((tblRole == null) ? 0 : tblRole.hashCode());
		return result;
	}


	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final AbstractRolePower other = (AbstractRolePower) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (tblPower == null) {
			if (other.tblPower != null)
				return false;
		} else if (!tblPower.equals(other.tblPower))
			return false;
		if (tblRole == null) {
			if (other.tblRole != null)
				return false;
		} else if (!tblRole.equals(other.tblRole))
			return false;
		return true;
	}
   

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -