Class SimpleCourse

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

public class SimpleCourse extends Object
A simple DTO for course information, used in the StudentCourseDTO to avoid circular references.
  • Constructor Details

    • SimpleCourse

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

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

    • getCourseId

      public Long getCourseId()
      Getters for courseId
      Returns:
      the course ID
    • setCourseId

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

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

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

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

      public void setCode(String code)
      Setters for code
      Parameters:
      code - the code of the course to set