teachersubjectdto

mail@pastecode.io avatar
unknown
plain_text
a month ago
644 B
1
Indexable
Never
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
public class TeacherDTO extends PersonDTO {

    private List<String> subjects;
    private byte[] photo;

    public TeacherDTO(Integer teacherId, String firstName, String lastName, String address, String email, String birthDate, String phoneNumber, List<String> subjects, byte[] photo) {
        setId(teacherId);
        setFirstName(firstName);
        setLastName(lastName);
        setAddress(address);
        setEmail(email);
        setDateOfBirth(birthDate);
        setPhoneNumber(phoneNumber);
        setSubjects(subjects);
        setPhoto(photo);
    }
}
Leave a Comment