引入需要的jar包

@Entity
public class Teacher {
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
  private   Integer  tId;  //编号
  private   Integer  tAge; //年龄
  private   String  tName;//姓名
  private   Date  tDate;
  
  
  
@Override
public String toString() {
    return "Teacher [tId=" + tId + ", tage=" + tAge + ", tName=" + tName
            + ", tDate=" + tDate + "]";
}
public Teacher() {
    super();
}
public Teacher(Integer tId, Integer tage, String tName, Date tDate) {
    super();
    this.tId = tId;
    this.tAge = tage;
    this.tName = tName;
    this.tDate = tDate;
}
public Integer gettId() {
    return tId;
}
public void settId(Integer tId) {
    this.tId = tId;
}

public Integer gettAge() {
    return tAge;
}
public void settAge(Integer tAge) {
    this.tAge = tAge;
}
public String gettName() {
    return tName;
}
public void settName(String tName) {
    this.tName = tName;
}
public Date gettDate() {
    return tDate;
}
public void settDate(Date tDate) {
    this.tDate = tDate;
}
  
}
Teacher实体类

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2021-12-04
  • 2021-05-08
  • 2021-12-06
  • 2021-07-25
  • 2021-05-11
猜你喜欢
  • 2021-04-19
  • 2021-09-01
  • 2022-12-23
  • 2021-06-10
  • 2021-07-28
  • 2022-12-23
相关资源
相似解决方案