mgrareaorgid.java

来自「使用spring ,hibernate 框架的稽查管理系统」· Java 代码 · 共 81 行

JAVA
81
字号
package com.je.ims.hibernate;



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

public class MgrAreaOrgId  implements java.io.Serializable {


    // Fields    

     private Long areaPk;
     private String orgId;
     private Long year;


    // Constructors

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

    

   
    // Property accessors

    public Long getAreaPk() {
        return this.areaPk;
    }
    
    public void setAreaPk(Long areaPk) {
        this.areaPk = areaPk;
    }

    public String getOrgId() {
        return this.orgId;
    }
    
    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public Long getYear() {
        return this.year;
    }
    
    public void setYear(Long year) {
        this.year = year;
    }
   



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





}

⌨️ 快捷键说明

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