| 3 | import java.util.*; |
| 4 | |
| 5 | public class CommentDto { |
| 6 | private Integer cno; |
| 7 | private Integer bno; |
| 8 | private Integer pcno; |
| 9 | private String comment; |
| 10 | private String commenter; |
| 11 | private Date reg_date; |
| 12 | private Date up_date; |
| 13 | |
| 14 | public CommentDto() {} |
| 15 | public CommentDto(Integer bno, Integer pcno, String comment, String commenter) { |
| 16 | this.bno = bno; |
| 17 | this.pcno = pcno; |
| 18 | this.comment = comment; |
| 19 | this.commenter = commenter; |
| 20 | } |
| 21 | |
| 22 | @Override |
| 23 | public boolean equals(Object o) { |
| 24 | if (this == o) return true; |
| 25 | if (o == null || getClass() != o.getClass()) return false; |
| 26 | CommentDto that = (CommentDto) o; |
| 27 | return Objects.equals(cno, that.cno) && Objects.equals(bno, that.bno) && Objects.equals(pcno, that.pcno) && Objects.equals(comment, that.comment) && Objects.equals(commenter, that.commenter); |
| 28 | } |
| 29 | |
| 30 | @Override |
| 31 | public int hashCode() { |
| 32 | return Objects.hash(cno, bno, pcno, comment, commenter); |
| 33 | } |
| 34 | |
| 35 | public Integer getBno() { |
| 36 | return bno; |
| 37 | } |
| 38 | |
| 39 | public void setBno(Integer bno) { |
| 40 | this.bno = bno; |
| 41 | } |
| 42 | |
| 43 | public Integer getPcno() { |
| 44 | return pcno; |
| 45 | } |
| 46 | |
| 47 | public void setPcno(Integer pcno) { |
| 48 | this.pcno = pcno; |
| 49 | } |
| 50 | |
| 51 | public String getComment() { |
| 52 | return comment; |
| 53 | } |
| 54 | |
| 55 | public void setComment(String comment) { |
| 56 | this.comment = comment; |
| 57 | } |
| 58 | |
| 59 | public String getCommenter() { |
| 60 | return commenter; |
| 61 | } |
| 62 |
nothing calls this directly
no outgoing calls
no test coverage detected