roleandmenu.java

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

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



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

public class Roleandmenu extends org.pontifex.web.mapping.PageInfo implements java.io.Serializable {
	  // Fields    

    private Roleinfo roleinfo;
    private Menuinfo menuinfo;


   // Constructors

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

   
   /** full constructor */
   public Roleandmenu(Roleinfo roleinfo, Menuinfo menuinfo) {
       this.roleinfo = roleinfo;
       this.menuinfo = menuinfo;
   }

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

   // Property accessors

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

   public Menuinfo getMenuinfo() {
       return this.menuinfo;
   }
   
   public void setMenuinfo(Menuinfo menuinfo) {
       this.menuinfo = menuinfo;
   }
}

⌨️ 快捷键说明

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