?? 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 + -