Class InstructorByCourse
java.lang.Object
org.codewithmagret.rest.report.dto.InstructorByCourse
DTO for InstructorByCourse report
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for InstructorByCourse.InstructorByCourse(Long courseId, String title, String code, SimpleInstructor instructor) Parameterized constructor for InstructorByCourse. -
Method Summary
Modifier and TypeMethodDescriptiongetCode()Getters for the fields of InstructorByCourse.Getters and setters for the fields of InstructorByCourse.Getters for the fields of InstructorByCourse.getTitle()Getters for the fields of InstructorByCourse.voidSetters for the fields of InstructorByCourse.voidsetCourseId(Long courseId) Setters for the fields of InstructorByCourse.voidsetInstructor(SimpleInstructor instructor) Setters for the fields of InstructorByCourse.voidSetters for the fields of InstructorByCourse.
-
Constructor Details
-
InstructorByCourse
public InstructorByCourse()Default constructor for InstructorByCourse. Required for JSON deserialization. -
InstructorByCourse
Parameterized constructor for InstructorByCourse.- Parameters:
courseId- the ID of the coursetitle- the title of the coursecode- the code of the courseinstructor- the instructor of the course
-
-
Method Details
-
getCourseId
Getters and setters for the fields of InstructorByCourse.- Returns:
- the course ID, title, code, and instructor
-
setCourseId
Setters for the fields of InstructorByCourse.- Parameters:
courseId- the ID of the course to set
-
getTitle
Getters for the fields of InstructorByCourse.- Returns:
- the title of the course
-
setTitle
Setters for the fields of InstructorByCourse.- Parameters:
title- the title of the course to set
-
getCode
Getters for the fields of InstructorByCourse.- Returns:
- the code of the course
-
setCode
Setters for the fields of InstructorByCourse.- Parameters:
code- the code of the course to set
-
getInstructor
Getters for the fields of InstructorByCourse.- Returns:
- the instructor of the course
-
setInstructor
Setters for the fields of InstructorByCourse.- Parameters:
instructor- the instructor of the course to set
-