frm2hostid.java

来自「使用java开发的简易论坛」· Java 代码 · 共 75 行

JAVA
75
字号
package mokoda.entity;



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

public class Frm2hostId  implements java.io.Serializable {


    // Fields    

     private Integer frmid;
     private Integer hostid;


    // Constructors

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

    
    /** full constructor */
    public Frm2hostId(Integer frmid, Integer hostid) {
        this.frmid = frmid;
        this.hostid = hostid;
    }

   
    // Property accessors

    public Integer getFrmid() {
        return this.frmid;
    }
    
    public void setFrmid(Integer frmid) {
        this.frmid = frmid;
    }

    public Integer getHostid() {
        return this.hostid;
    }
    
    public void setHostid(Integer hostid) {
        this.hostid = hostid;
    }
   



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





}

⌨️ 快捷键说明

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