📄 teamareaid.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -