AbstractTuserrole.java
资源名称:(J2EE)oa.rar [点击查看]
上传用户:lm2018
上传日期:2015-12-12
资源大小:30449k
文件大小:2k
源码类别:
Jsp/Servlet
开发平台:
Java
- package com.oa.module.office.user;
- /**
- * AbstractTuserrole generated by MyEclipse - Hibernate Tools
- */
- public abstract class AbstractTuserrole implements java.io.Serializable {
- // Fields
- private int hashValue = 0;
- private String urid;
- private String uno;
- private long rid;
- private Tuser user = null;
- // Constructors
- public Tuser getUser() {
- return user;
- }
- public void setUser(Tuser user) {
- this.user = user;
- }
- /** default constructor */
- public AbstractTuserrole() {
- }
- /** full constructor */
- public AbstractTuserrole(String uno, long rid) {
- this.uno = uno;
- this.rid = rid;
- }
- // Property accessors
- public String getUrid() {
- return this.urid;
- }
- public void setUrid(String urid) {
- this.urid = urid;
- }
- public String getUno() {
- return this.uno;
- }
- public void setUno(String uno) {
- this.uno = uno;
- }
- public long getRid() {
- return this.rid;
- }
- public void setRid(long rid) {
- this.rid = rid;
- }
- public boolean equals(Object rhs) {
- if (rhs == null)
- return false;
- if (!(rhs instanceof Tuserrole))
- return false;
- Tuserrole that = (Tuserrole) rhs;
- if (this.getUrid() == null || that.getUrid() == null)
- return false;
- return (this.getUrid().equals(that.getUrid()));
- }
- public int hashCode() {
- if (this.hashValue == 0) {
- int result = 17;
- int uridValue = this.getUrid() == null ? 0 : this.getUrid()
- .hashCode();
- result = result * 37 + uridValue;
- this.hashValue = result;
- }
- return this.hashValue;
- }
- }