双表的增删改查-实体类
package com.lzl.pojo;
import java.io.Serializable;
public class Doctor implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
private int id;//主键
private String name;//姓名
private String rzdate;//入职日 期
private String birthday;//生 日
private int grader;//性别
private int age;//年龄
private int province;//省 id
private int town;//市id
private int county;//区id
private int desk;//科室id
private int adept;//擅 长id
private String touxiang;//头像|
private String sname;// 自name
private String cname;// 市name
private String xname;//区name
private String kname; //科室name
private int gl;//工龄
private String scname;//擅 长
private int MaxAge;//最大年龄
private int MinAge;//最小年龄
private String sfz;//身份证
public String getSfz() {
return sfz;
}
public void setSfz(String sfz) {
this.sfz = sfz;
}
public String getTelephone() {
return telephone;
}
public void setTelephone(String telephone) {
this.telephone = telephone;
}
private String telephone;//电话
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getRzdate() {
return rzdate;
}
public void setRzdate(String rzdate) {
this.rzdate = rzdate;
}
public String getBirthday() {
return birthday;
}
public void setBirthday(String birthday) {
this.birthday = birthday;
}
public int getGrader() {
return grader;
}
public void setGrader(int grader) {
this.grader = grader;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public int getProvince() {
return province;
}
public void setProvince(int province) {
this.province = province;
}
public int getTown() {
return town;
}
public void setTown(int town) {
this.town = town;
}
public int getCounty() {
return county;
}
public void setCounty(int county) {
this.county = county;
}
public int getDesk() {
return desk;
}
public void setDesk(int desk) {
this.desk = desk;
}
public int getAdept() {
return adept;
}
public void setAdept(int adept) {
this.adept = adept;
}
public String getTouxiang() {
return touxiang;
}
public void setTouxiang(String touxiang) {
this.touxiang = touxiang;
}
public String getSname() {
return sname;
}
public void setSname(String sname) {
this.sname = sname;
}
public String getCname() {
return cname;
}
public void setCname(String cname) {
this.cname = cname;
}
public String getXname() {
return xname;
}
public void setXname(String xname) {
this.xname = xname;
}
public String getKname() {
return kname;
}
public void setKname(String kname) {
this.kname = kname;
}
public int getGl() {
return gl;
}
public void setGl(int gl) {
this.gl = gl;
}
public String getScname() {
return scname;
}
public void setScname(String scname) {
this.scname = scname;
}
public int getMaxAge() {
return MaxAge;
}
public void setMaxAge(int maxAge) {
MaxAge = maxAge;
}
public int getMinAge() {
return MinAge;
}
public void setMinAge(int minAge) {
MinAge = minAge;
}
public Doctor(int id, String name, String rzdate, String birthday, int grader, int age, int province, int town,
int county, int desk, int adept, String touxiang, String sname, String cname, String xname, String kname,
int gl, String scname, int maxAge, int minAge, String sfz, String telephone) {
super();
this.id = id;
this.name = name;
this.rzdate = rzdate;
this.birthday = birthday;
this.grader = grader;
this.age = age;
this.province = province;
this.town = town;
this.county = county;
this.desk = desk;
this.adept = adept;
this.touxiang = touxiang;
this.sname = sname;
this.cname = cname;
this.xname = xname;
this.kname = kname;
this.gl = gl;
this.scname = scname;
MaxAge = maxAge;
MinAge = minAge;
this.sfz = sfz;
this.telephone = telephone;
}
@Override
public String toString() {
return "Doctor [id=" + id + ", name=" + name + ", rzdate=" + rzdate + ", birthday=" + birthday + ", grader="
+ grader + ", age=" + age + ", province=" + province + ", town=" + town + ", county=" + county
+ ", desk=" + desk + ", adept=" + adept + ", touxiang=" + touxiang + ", sname=" + sname + ", cname="
+ cname + ", xname=" + xname + ", kname=" + kname + ", gl=" + gl + ", scname=" + scname + ", MaxAge="
+ MaxAge + ", MinAge=" + MinAge + ", sfz=" + sfz + ", telephone=" + telephone + "]";
}
public Doctor() {
super();
// TODO Auto-generated constructor stub
}
}