package seu.domain;

import org.springframework.stereotype.Component;

@Component
public class Teacher {
    private int teacherId;
    private String teacherName;
    private int teacherPhoneNumber;
    private String password;

    public Teacher() {
        super();
    }

    public Teacher(int teacherId, String teacherName, int teacherPhoneNumber, String password) {
        this.teacherId = teacherId;
        this.teacherName = teacherName;
        this.teacherPhoneNumber = teacherPhoneNumber;
        this.password = password;
    }

    public int getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(int teacherId) {
        this.teacherId = teacherId;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public int getTeacherPhoneNumber() {
        return teacherPhoneNumber;
    }

    public void setTeacherPhoneNumber(int teacherPhoneNumber) {
        this.teacherPhoneNumber = teacherPhoneNumber;
    }

    public String getPassword() { return password; }

    public void setPassword(String password) { this.password = password; }

    @Override
    public String toString() {
        return "Teacher{" + "teacherId=" + teacherId + ", teacherName='" + teacherName + '\'' + ", teacherPhoneNumber='" + teacherPhoneNumber + '\'' + ",password='" + password + '\'' + '}';
    }
}

@@ -64,16 +64,46 @@
 onent;%0A%0A
+import java.io.Serializable;%0A%0A
 @Compone
@@ -126,16 +126,40 @@
 Teacher 
+implements Serializable 
 %7B%0A    pr

change to serialize