📄 abstractview挂号信息表id.java
字号:
package hospital.Model;
import java.util.Date;
/**
* AbstractView挂号信息表Id generated by MyEclipse - Hibernate Tools
*/
public abstract class AbstractView挂号信息表Id implements java.io.Serializable {
// Fields
private Integer 挂号编号;
private String 患者编号;
private String 患者姓名;
private String 医生编号;
private String 医生姓名;
private String 科室名称;
private Date 挂号时间;
// Constructors
/** default constructor */
public AbstractView挂号信息表Id() {
}
/** minimal constructor */
public AbstractView挂号信息表Id(Integer 挂号编号, String 患者编号, String 医生编号) {
this.挂号编号 = 挂号编号;
this.患者编号 = 患者编号;
this.医生编号 = 医生编号;
}
/** full constructor */
public AbstractView挂号信息表Id(Integer 挂号编号, String 患者编号, String 患者姓名, String 医生编号, String 医生姓名, String 科室名称, Date 挂号时间) {
this.挂号编号 = 挂号编号;
this.患者编号 = 患者编号;
this.患者姓名 = 患者姓名;
this.医生编号 = 医生编号;
this.医生姓名 = 医生姓名;
this.科室名称 = 科室名称;
this.挂号时间 = 挂号时间;
}
// Property accessors
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 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 Date get挂号时间() {
return this.挂号时间;
}
public void set挂号时间(Date 挂号时间) {
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挂号时间()) ) );
}
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() );
return result;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -