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