📄 pettreatmentid.java
字号:
package com.sean.pet.hibernate.po;
/**
* PettreatmentId entity.
*
* @author MyEclipse Persistence Tools
*/
public class PettreatmentId implements java.io.Serializable {
// Fields
private Examination examination;
private Treatment treatment;
// Constructors
/** default constructor */
public PettreatmentId() {
}
/** full constructor */
public PettreatmentId(Examination examination, Treatment treatment) {
this.examination = examination;
this.treatment = treatment;
}
// Property accessors
public Examination getExamination() {
return this.examination;
}
public void setExamination(Examination examination) {
this.examination = examination;
}
public Treatment getTreatment() {
return this.treatment;
}
public void setTreatment(Treatment treatment) {
this.treatment = treatment;
}
public boolean equals(Object other) {
if ((this == other))
return true;
if ((other == null))
return false;
if (!(other instanceof PettreatmentId))
return false;
PettreatmentId castOther = (PettreatmentId) other;
return ((this.getExamination() == castOther.getExamination()) || (this
.getExamination() != null
&& castOther.getExamination() != null && this.getExamination()
.equals(castOther.getExamination())))
&& ((this.getTreatment() == castOther.getTreatment()) || (this
.getTreatment() != null
&& castOther.getTreatment() != null && this
.getTreatment().equals(castOther.getTreatment())));
}
public int hashCode() {
int result = 17;
result = 37
* result
+ (getExamination() == null ? 0 : this.getExamination()
.hashCode());
result = 37 * result
+ (getTreatment() == null ? 0 : this.getTreatment().hashCode());
return result;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -