orgemailid.java
来自「使用spring ,hibernate 框架的稽查管理系统」· Java 代码 · 共 73 行
JAVA
73 行
package com.je.ims.hibernate;
/**
* OrgEmailId generated by MyEclipse - Hibernate Tools
*/
public class OrgEmailId implements java.io.Serializable {
// Fields
private Long year;
private String orgId;
// Constructors
/** default constructor */
public OrgEmailId() {
}
public OrgEmailId(Long year,String orgId){
this.year = year;
this.orgId = orgId;
}
// Property accessors
public Long getYear() {
return this.year;
}
public void setYear(Long year) {
this.year = year;
}
public String getOrgId() {
return this.orgId;
}
public void setOrgId(String orgId) {
this.orgId = orgId;
}
public boolean equals(Object other) {
if ( (this == other ) ) return true;
if ( (other == null ) ) return false;
if ( !(other instanceof OrgEmailId) ) return false;
OrgEmailId castOther = ( OrgEmailId ) other;
return ( (this.getYear()==castOther.getYear()) || ( this.getYear()!=null && castOther.getYear()!=null && this.getYear().equals(castOther.getYear()) ) )
&& ( (this.getOrgId()==castOther.getOrgId()) || ( this.getOrgId()!=null && castOther.getOrgId()!=null && this.getOrgId().equals(castOther.getOrgId()) ) );
}
public int hashCode() {
int result = 17;
result = 37 * result + ( getYear() == null ? 0 : this.getYear().hashCode() );
result = 37 * result + ( getOrgId() == null ? 0 : this.getOrgId().hashCode() );
return result;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?