You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
664 B
39 lines
664 B
package cn.hzxy.springbootusejpa.entity;
|
|
|
|
import javax.persistence.*;
|
|
|
|
@Entity
|
|
@Table(name="teacher")
|
|
public class NewTeacher {
|
|
@Id
|
|
private String id;
|
|
@Column(name="name",length=32)
|
|
private String name;
|
|
@Column
|
|
private String password;
|
|
|
|
public String getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(String id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public String getPassword() {
|
|
return password;
|
|
}
|
|
|
|
public void setPassword(String password) {
|
|
this.password = password;
|
|
}
|
|
}
|