Class Note

java.lang.Object
com.nicholasalfonso.lato.entity.Note

@Entity public class Note extends Object
JPA entity representing a user note. Stores text notes associated with a specific assignment, with timestamps for creation and updates.
  • Constructor Details

    • Note

      public Note()
  • Method Details

    • getId

      public Long getId()
      Gets the ID of this note.
      Returns:
      the note ID
    • getAssignment

      public Assignment getAssignment()
      Gets the assignment this note is associated with.
      Returns:
      the associated assignment
    • setAssignment

      public void setAssignment(Assignment assignment)
      Sets the assignment this note is associated with.
      Parameters:
      assignment - the assignment to associate
    • getContent

      public String getContent()
      Gets the content of this note.
      Returns:
      the note content
    • setContent

      public void setContent(String content)
      Sets the content of this note.
      Parameters:
      content - the note content
    • getCreatedAt

      public Instant getCreatedAt()
      Gets the creation timestamp.
      Returns:
      the creation timestamp
    • getUpdatedAt

      public Instant getUpdatedAt()
      Gets the last update timestamp.
      Returns:
      the update timestamp