msg2clientid.java

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

JAVA
75
字号
package mokoda.entity;



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

public class Msg2clientId  implements java.io.Serializable {


    // Fields    

     private Integer msgid;
     private Integer clientid;


    // Constructors

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

    
    /** full constructor */
    public Msg2clientId(Integer msgid, Integer clientid) {
        this.msgid = msgid;
        this.clientid = clientid;
    }

   
    // Property accessors

    public Integer getMsgid() {
        return this.msgid;
    }
    
    public void setMsgid(Integer msgid) {
        this.msgid = msgid;
    }

    public Integer getClientid() {
        return this.clientid;
    }
    
    public void setClientid(Integer clientid) {
        this.clientid = clientid;
    }
   



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





}

⌨️ 快捷键说明

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