Package com.nicholasalfonso.lato.entity
Class Note
java.lang.Object
com.nicholasalfonso.lato.entity.Note
JPA entity representing a user note.
Stores text notes associated with a specific assignment, with timestamps for creation and updates.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the assignment this note is associated with.Gets the content of this note.Gets the creation timestamp.getId()Gets the ID of this note.Gets the last update timestamp.voidsetAssignment(Assignment assignment) Sets the assignment this note is associated with.voidsetContent(String content) Sets the content of this note.
-
Constructor Details
-
Note
public Note()
-
-
Method Details
-
getId
Gets the ID of this note.- Returns:
- the note ID
-
getAssignment
Gets the assignment this note is associated with.- Returns:
- the associated assignment
-
setAssignment
Sets the assignment this note is associated with.- Parameters:
assignment- the assignment to associate
-
getContent
Gets the content of this note.- Returns:
- the note content
-
setContent
Sets the content of this note.- Parameters:
content- the note content
-
getCreatedAt
Gets the creation timestamp.- Returns:
- the creation timestamp
-
getUpdatedAt
Gets the last update timestamp.- Returns:
- the update timestamp
-