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;
    }
}
