📄 abstractview病案信息表id.java
字号:
package hospital.Model;
/**
* AbstractView病案信息表Id generated by MyEclipse - Hibernate Tools
*/
public abstract class AbstractView病案信息表Id implements java.io.Serializable {
// Fields
private Integer 病案编号;
private Integer 患者编号;
private String 患者姓名;
private String 性别;
private Short 年龄;
private String 科室编号;
private String 名称;
private String 医生编号;
private String 医生姓名;
private String 开出药品;
private String 诊断结果;
private String 备注;
// Constructors
/** default constructor */
public AbstractView病案信息表Id() {
}
/** minimal constructor */
public AbstractView病案信息表Id(Integer 病案编号, Integer 患者编号, String 患者姓名, String 科室编号, String 名称, String 医生编号, String 医生姓名) {
this.病案编号 = 病案编号;
this.患者编号 = 患者编号;
this.患者姓名 = 患者姓名;
this.科室编号 = 科室编号;
this.名称 = 名称;
this.医生编号 = 医生编号;
this.医生姓名 = 医生姓名;
}
/** full constructor */
public AbstractView病案信息表Id(Integer 病案编号, Integer 患者编号, String 患者姓名, String 性别, Short 年龄, String 科室编号, String 名称, String 医生编号, String 医生姓名, String 开出药品, String 诊断结果, String 备注) {
this.病案编号 = 病案编号;
this.患者编号 = 患者编号;
this.患者姓名 = 患者姓名;
this.性别 = 性别;
this.年龄 = 年龄;
this.科室编号 = 科室编号;
this.名称 = 名称;
this.医生编号 = 医生编号;
this.医生姓名 = 医生姓名;
this.开出药品 = 开出药品;
this.诊断结果 = 诊断结果;
this.备注 = 备注;
}
// Property accessors
public Integer get病案编号() {
return this.病案编号;
}
public void set病案编号(Integer 病案编号) {
this.病案编号 = 病案编号;
}
public Integer get患者编号() {
return this.患者编号;
}
public void set患者编号(Integer 患者编号) {
this.患者编号 = 患者编号;
}
public String get患者姓名() {
return this.患者姓名;
}
public void set患者姓名(String 患者姓名) {
this.患者姓名 = 患者姓名;
}
public String get性别() {
return this.性别;
}
public void set性别(String 性别) {
this.性别 = 性别;
}
public Short get年龄() {
return this.年龄;
}
public void set年龄(Short 年龄) {
this.年龄 = 年龄;
}
public String get科室编号() {
return this.科室编号;
}
public void set科室编号(String 科室编号) {
this.科室编号 = 科室编号;
}
public String get名称() {
return this.名称;
}
public void set名称(String 名称) {
this.名称 = 名称;
}
public String get医生编号() {
return this.医生编号;
}
public void set医生编号(String 医生编号) {
this.医生编号 = 医生编号;
}
public String get医生姓名() {
return this.医生姓名;
}
public void set医生姓名(String 医生姓名) {
this.医生姓名 = 医生姓名;
}
public String get开出药品() {
return this.开出药品;
}
public void set开出药品(String 开出药品) {
this.开出药品 = 开出药品;
}
public String get诊断结果() {
return this.诊断结果;
}
public void set诊断结果(String 诊断结果) {
this.诊断结果 = 诊断结果;
}
public String get备注() {
return this.备注;
}
public void set备注(String 备注) {
this.备注 = 备注;
}
public boolean equals(Object other) {
if ( (this == other ) ) return true;
if ( (other == null ) ) return false;
if ( !(other instanceof AbstractView病案信息表Id) ) return false;
AbstractView病案信息表Id castOther = ( AbstractView病案信息表Id ) other;
return ( (this.get病案编号()==castOther.get病案编号()) || ( this.get病案编号()!=null && castOther.get病案编号()!=null && this.get病案编号().equals(castOther.get病案编号()) ) ) && ( (this.get患者编号()==castOther.get患者编号()) || ( this.get患者编号()!=null && castOther.get患者编号()!=null && this.get患者编号().equals(castOther.get患者编号()) ) ) && ( (this.get患者姓名()==castOther.get患者姓名()) || ( this.get患者姓名()!=null && castOther.get患者姓名()!=null && this.get患者姓名().equals(castOther.get患者姓名()) ) ) && ( (this.get性别()==castOther.get性别()) || ( this.get性别()!=null && castOther.get性别()!=null && this.get性别().equals(castOther.get性别()) ) ) && ( (this.get年龄()==castOther.get年龄()) || ( this.get年龄()!=null && castOther.get年龄()!=null && this.get年龄().equals(castOther.get年龄()) ) ) && ( (this.get科室编号()==castOther.get科室编号()) || ( this.get科室编号()!=null && castOther.get科室编号()!=null && this.get科室编号().equals(castOther.get科室编号()) ) ) && ( (this.get名称()==castOther.get名称()) || ( this.get名称()!=null && castOther.get名称()!=null && this.get名称().equals(castOther.get名称()) ) ) && ( (this.get医生编号()==castOther.get医生编号()) || ( this.get医生编号()!=null && castOther.get医生编号()!=null && this.get医生编号().equals(castOther.get医生编号()) ) ) && ( (this.get医生姓名()==castOther.get医生姓名()) || ( this.get医生姓名()!=null && castOther.get医生姓名()!=null && this.get医生姓名().equals(castOther.get医生姓名()) ) ) && ( (this.get开出药品()==castOther.get开出药品()) || ( this.get开出药品()!=null && castOther.get开出药品()!=null && this.get开出药品().equals(castOther.get开出药品()) ) ) && ( (this.get诊断结果()==castOther.get诊断结果()) || ( this.get诊断结果()!=null && castOther.get诊断结果()!=null && this.get诊断结果().equals(castOther.get诊断结果()) ) ) && ( (this.get备注()==castOther.get备注()) || ( this.get备注()!=null && castOther.get备注()!=null && this.get备注().equals(castOther.get备注()) ) );
}
public int hashCode() {
int result = 17;
result = 37 * result + ( get病案编号() == null ? 0 : this.get病案编号().hashCode() );
result = 37 * result + ( get患者编号() == null ? 0 : this.get患者编号().hashCode() );
result = 37 * result + ( get患者姓名() == null ? 0 : this.get患者姓名().hashCode() );
result = 37 * result + ( get性别() == null ? 0 : this.get性别().hashCode() );
result = 37 * result + ( get年龄() == null ? 0 : this.get年龄().hashCode() );
result = 37 * result + ( get科室编号() == null ? 0 : this.get科室编号().hashCode() );
result = 37 * result + ( get名称() == null ? 0 : this.get名称().hashCode() );
result = 37 * result + ( get医生编号() == null ? 0 : this.get医生编号().hashCode() );
result = 37 * result + ( get医生姓名() == null ? 0 : this.get医生姓名().hashCode() );
result = 37 * result + ( get开出药品() == null ? 0 : this.get开出药品().hashCode() );
result = 37 * result + ( get诊断结果() == null ? 0 : this.get诊断结果().hashCode() );
result = 37 * result + ( get备注() == null ? 0 : this.get备注().hashCode() );
return result;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -