Class InstructorByCourse

java.lang.Object
org.codewithmagret.rest.report.dto.InstructorByCourse

public class InstructorByCourse extends Object
DTO for InstructorByCourse report
  • Constructor Details

    • InstructorByCourse

      public InstructorByCourse()
      Default constructor for InstructorByCourse. Required for JSON deserialization.
    • InstructorByCourse

      public InstructorByCourse(Long courseId, String title, String code, SimpleInstructor instructor)
      Parameterized constructor for InstructorByCourse.
      Parameters:
      courseId - the ID of the course
      title - the title of the course
      code - the code of the course
      instructor - the instructor of the course
  • Method Details

    • getCourseId

      public Long getCourseId()
      Getters and setters for the fields of InstructorByCourse.
      Returns:
      the course ID, title, code, and instructor
    • setCourseId

      public void setCourseId(Long courseId)
      Setters for the fields of InstructorByCourse.
      Parameters:
      courseId - the ID of the course to set
    • getTitle

      public String getTitle()
      Getters for the fields of InstructorByCourse.
      Returns:
      the title of the course
    • setTitle

      public void setTitle(String title)
      Setters for the fields of InstructorByCourse.
      Parameters:
      title - the title of the course to set
    • getCode

      public String getCode()
      Getters for the fields of InstructorByCourse.
      Returns:
      the code of the course
    • setCode

      public void setCode(String code)
      Setters for the fields of InstructorByCourse.
      Parameters:
      code - the code of the course to set
    • getInstructor

      public SimpleInstructor getInstructor()
      Getters for the fields of InstructorByCourse.
      Returns:
      the instructor of the course
    • setInstructor

      public void setInstructor(SimpleInstructor instructor)
      Setters for the fields of InstructorByCourse.
      Parameters:
      instructor - the instructor of the course to set