-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6dfc80e
commit bc82c69
Showing
3 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
src/main/java/com/miguelaugusto/workshopmongo/dto/CommentDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package com.miguelaugusto.workshopmongo.dto; | ||
|
||
import java.io.Serializable; | ||
import java.util.Date; | ||
|
||
public class CommentDTO implements Serializable{ | ||
private static final long serialVersionUID = 1L; | ||
private String text; | ||
private Date date; | ||
private AuthorDTO author; | ||
|
||
public CommentDTO() { | ||
|
||
} | ||
|
||
public CommentDTO(String text, Date date, AuthorDTO author) { | ||
super(); | ||
this.text = text; | ||
this.date = date; | ||
this.author = author; | ||
} | ||
|
||
public String getText() { | ||
return text; | ||
} | ||
|
||
public void setText(String text) { | ||
this.text = text; | ||
} | ||
|
||
public Date getDate() { | ||
return date; | ||
} | ||
|
||
public void setDate(Date date) { | ||
this.date = date; | ||
} | ||
|
||
public AuthorDTO getAuthor() { | ||
return author; | ||
} | ||
|
||
public void setAuthor(AuthorDTO author) { | ||
this.author = author; | ||
} | ||
} |