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