![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/6850c929ae0837af9a7c6b7b484686a4.png)
证件类型实体类
package com.abc.web.domain;
public class CertType {
private Integer id;
private String content;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
@Override
public String toString() {
return "CertType [id=" + id + ", content=" + content + "]";
}
}
城市实体类
package com.abc.web.domain;
public class City {
private Integer id;
private String cityId;
private String city;
private Province province;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getCityId() {
return cityId;
}
public void setCityId(String cityId) {
this.cityId = cityId;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public Province getProvince() {
return province;
}
public void setProvince(Province province) {
this.province = province;
}
@Override
public String toString() {
return "City [id=" + id + ", cityId=" + cityId + ", city=" + city
+ ", province=" + province + "]";
}
}
省份实体类
package com.abc.web.domain;
public class Province {
private Integer id;
private String provinceId;
private String province;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getProvinceId() {
return provinceId;
}
public void setProvinceId(String provinceId) {
this.provinceId = provinceId;
}
public String getProvince() {
return province;
}
public void setProvince(String province) {
this.province = province;
}
@Override
public String toString() {
return "Province [id=" + id + ", provinceId=" + provinceId
+ ", province=" + province + "]";
}
}
用户实体类
package com.abc.web.domain;
import java.util.Date;
public class User {
private Integer id;
private String username;
private String password;
private String password2;
private String rule;
private String realname;
private String sex;
private City city;
private CertType certType;
private String cert;
private Date birthday;
private UserType userType;
private String content;
private String status;
private String loginIp;
private String imagePath;
private boolean autoLogin;
private String code;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getPassword2() {
return password2;
}
public void setPassword2(String password2) {
this.password2 = password2;
}
public String getRule() {
return rule;
}
public void setRule(String rule) {
this.rule = rule;
}
public String getRealname() {
return realname;
}
public void setRealname(String realname) {
this.realname = realname;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
public City getCity() {
return city;
}
public void setCity(City city) {
this.city = city;
}
public CertType getCertType() {
return certType;
}
public void setCertType(CertType certType) {
this.certType = certType;
}
public String getCert() {
return cert;
}
public void setCert(String cert) {
this.cert = cert;
}
public Date getBirthday() {
return birthday;
}
public void setBirthday(Date birthday) {
this.birthday = birthday;
}
public UserType getUserType() {
return userType;
}
public void setUserType(UserType userType) {
this.userType = userType;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getLoginIp() {
return loginIp;
}
public void setLoginIp(String loginIp) {
this.loginIp = loginIp;
}
public String getImagePath() {
return imagePath;
}
public void setImagePath(String imagePath) {
this.imagePath = imagePath;
}
public boolean isAutoLogin() {
return autoLogin;
}
public void setAutoLogin(boolean autoLogin) {
this.autoLogin = autoLogin;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
@Override
public String toString() {
return "User [id=" + id + ", username=" + username + ", password="
+ password + ", password2=" + password2 + ", rule=" + rule
+ ", realname=" + realname + ", sex=" + sex + ", city=" + city
+ ", certType=" + certType + ", cert=" + cert + ", birthday="
+ birthday + ", userType=" + userType + ", content=" + content
+ ", status=" + status + ", loginIp=" + loginIp
+ ", imagePath=" + imagePath + ", autoLogin=" + autoLogin
+ ", code=" + code + "]";
}
}
旅客类型实体类
package com.abc.web.domain;
public class UserType {
private Integer id;
private String content;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
@Override
public String toString() {
return "UserType [id=" + id + ", content=" + content + "]";
}
}