AbstractTrolefunction.java
资源名称:(J2EE)oa.rar [点击查看]
上传用户:lm2018
上传日期:2015-12-12
资源大小:30449k
文件大小:2k
源码类别:
Jsp/Servlet
开发平台:
Java
- package com.oa.module.office.role;
- /**
- * AbstractTrolefunction generated by MyEclipse - Hibernate Tools
- */
- public abstract class AbstractTrolefunction implements java.io.Serializable {
- // Fields
- private int hashValue = 0;
- private String rfid;
- private long rid;
- private long fid;
- private Trole role = null;
- // Constructors
- public Trole getRole() {
- return role;
- }
- public void setRole(Trole role) {
- this.role = role;
- }
- /** default constructor */
- public AbstractTrolefunction() {
- }
- /** full constructor */
- public AbstractTrolefunction(long rid, long fid) {
- this.rid = rid;
- this.fid = fid;
- }
- // Property accessors
- public String getRfid() {
- return this.rfid;
- }
- public void setRfid(String rfid) {
- this.rfid = rfid;
- }
- public long getRid() {
- return this.rid;
- }
- public void setRid(long rid) {
- this.rid = rid;
- }
- public long getFid() {
- return this.fid;
- }
- public void setFid(long fid) {
- this.fid = fid;
- }
- public boolean equals(Object rhs) {
- if (rhs == null)
- return false;
- if (!(rhs instanceof Trolefunction))
- return false;
- Trolefunction that = (Trolefunction) rhs;
- if (this.getRfid() == null || that.getRfid() == null)
- return false;
- return (this.getRfid().equals(that.getRfid()));
- }
- public int hashCode() {
- if (this.hashValue == 0) {
- int result = 17;
- int rfidValue = this.getRfid() == null ? 0 : this.getRfid()
- .hashCode();
- result = result * 37 + rfidValue;
- this.hashValue = result;
- }
- return this.hashValue;
- }
- }