MCPcopy Create free account
hub / github.com/castello/spring_basic / BoardDto

Class BoardDto

ch4/BoardDto.java:5–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import java.util.*;
4
5public class BoardDto {
6 private Integer bno;
7 private String title;
8 private String content;
9 private String writer;
10 private int view_cnt;
11 private int comment_cnt;
12 private Date reg_date;
13
14 @Override
15 public boolean equals(Object o) {
16 if (this == o) return true;
17 if (o == null || getClass() != o.getClass()) return false;
18 BoardDto boardDto = (BoardDto) o;
19 return Objects.equals(bno, boardDto.bno) && Objects.equals(title, boardDto.title) && Objects.equals(content, boardDto.content) && Objects.equals(writer, boardDto.writer);
20 }
21
22 @Override
23 public int hashCode() {
24 return Objects.hash(bno, title, content, writer);
25 }
26
27 public BoardDto() { this("","",""); }
28 public BoardDto(String title, String content, String writer){
29 this.title = title;
30 this.content = content;
31 this.writer = writer;
32 }
33
34 public Integer getBno() {
35 return bno;
36 }
37 public void setBno(Integer bno) {
38 this.bno = bno;
39 }
40 public String getTitle() {
41 return title;
42 }
43 public void setTitle(String title) {
44 this.title = title;
45 }
46 public String getContent() {
47 return content;
48 }
49 public void setContent(String content) {
50 this.content = content;
51 }
52 public String getWriter() {
53 return writer;
54 }
55 public void setWriter(String writer) {
56 this.writer = writer;
57 }
58 public int getView_cnt() {
59 return view_cnt;
60 }
61 public void setView_cnt(int view_cnt) {
62 this.view_cnt = view_cnt;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected