Files
cms/src/main/java/com/fjy/spring/domain/TbUser.java
2018-02-22 20:14:16 +08:00

85 lines
2.0 KiB
Java

package com.fjy.spring.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
@Entity
public class TbUser {
@Id
@GeneratedValue
private Integer coluserid;
@NotNull(message = "用户名必填")
private String colname;
@Column(updatable=false)
/*@NotNull(message = "密码不能为空")*/
private String colpassword;
private String colemail;
@NotNull(message = "学号必填")
private String colstudentno;
@NotNull(message = "真实姓名必填")
private String colrealname;
public Integer getColuserid() {
return coluserid;
}
public void setColuserid(Integer coluserid) {
this.coluserid = coluserid;
}
public String getColname() {
return colname;
}
public void setColname(String colname) {
this.colname = colname;
}
public String getColpassword() {
return colpassword;
}
public void setColpassword(String colpassword) {
this.colpassword = colpassword;
}
public String getColemail() {
return colemail;
}
public void setColemail(String colemail) {
this.colemail = colemail;
}
public String getColstudentno() {
return colstudentno;
}
public void setColstudentno(String colstudentno) {
this.colstudentno = colstudentno;
}
public String getColrealname() {
return colrealname;
}
public void setColrealname(String colrealname) {
this.colrealname = colrealname;
}
@Override
public String toString() {
return "TbUser{" +
"coluserid=" + coluserid +
", colname='" + colname + '\'' +
", colpassword='" + colpassword + '\'' +
", colemail='" + colemail + '\'' +
", colstudentno='" + colstudentno + '\'' +
", colrealname='" + colrealname + '\'' +
'}';
}
}