tpc2frmid.java

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

JAVA
75
字号
package mokoda.entity;



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

public class Tpc2frmId  implements java.io.Serializable {


    // Fields    

     private Integer tpcid;
     private Integer frmid;


    // Constructors

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

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

   
    // Property accessors

    public Integer getTpcid() {
        return this.tpcid;
    }
    
    public void setTpcid(Integer tpcid) {
        this.tpcid = tpcid;
    }

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



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





}

⌨️ 快捷键说明

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