userandrole.java

来自「这是一个用java三层框架做的ISS学员管理系统」· Java 代码 · 共 74 行

JAVA
74
字号
package com.isoftstone.isscrmweb.web.mapping;



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

public class Userandrole extends org.pontifex.web.mapping.PageInfo implements java.io.Serializable {



    // Fields    

     private Userinfo userinfo;
     private Roleinfo roleinfo;


    // Constructors

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

    
    /** full constructor */
    public Userandrole(Userinfo userinfo, Roleinfo roleinfo) {
        this.userinfo = userinfo;
        this.roleinfo = roleinfo;
    }

   
    // Property accessors

    public Userinfo getUserinfo() {
        return this.userinfo;
    }
    
    public void setUserinfo(Userinfo userinfo) {
        this.userinfo = userinfo;
    }

    public Roleinfo getRoleinfo() {
        return this.roleinfo;
    }
    
    public void setRoleinfo(Roleinfo roleinfo) {
        this.roleinfo = roleinfo;
    }
   



   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof Userandrole) ) return false;
		 Userandrole castOther = ( Userandrole ) other; 
         
		 return ( (this.getUserinfo()==castOther.getUserinfo()) || ( this.getUserinfo()!=null && castOther.getUserinfo()!=null && this.getUserinfo().equals(castOther.getUserinfo()) ) )
 && ( (this.getRoleinfo()==castOther.getRoleinfo()) || ( this.getRoleinfo()!=null && castOther.getRoleinfo()!=null && this.getRoleinfo().equals(castOther.getRoleinfo()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getUserinfo() == null ? 0 : this.getUserinfo().hashCode() );
         result = 37 * result + ( getRoleinfo() == null ? 0 : this.getRoleinfo().hashCode() );
         return result;
   }   



}

⌨️ 快捷键说明

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