SAMPLE DTO
package org.lhr.DTO;
public class SampleDTO {
private int no;
private String firstName;
private String lastName;
public int getNo() {
return no;
}
public void setNo(int no) {
this.no = no;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
@Override
public String toString() {
return "SampleDTO [no=" + no + ", firstName=" + firstName + ", lastName=" + lastName + "]";
}
}
TODO DTO
package org.lhr.DTO;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
public class TodoDTO {
//제목
private String title;
//날짜
@DateTimeFormat(pattern="yyyy-MM-dd")
private Date duedate;
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public Date getDuedate() {
return duedate;
}
public void setDuedate(Date duedate) {
this.duedate = duedate;
}
@Override
public String toString() {
return "TodoDTO [title=" + title + ", duedate=" + duedate + "]";
}
}
MEMBERDTO
package org.lhr.DTO;
public class MemberDTO {
//이메일
String addr;
//아이디
String id;
//비밀번호
String password;
public String getAddr() {
return addr;
}
public void setAddr(String addr) {
this.addr = addr;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
@Override
public String toString() {
return "MemberDTO [addr=" + addr + ", id=" + id + ", password=" + password + "]";
}
}
LBMMEMBERDTO
package org.lhr.DTO;
public class LBMmemberDTO {
String id;
String pw;
String name;
String gender;
String homephone;
String phone;
String email;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getPw() {
return pw;
}
public void setPw(String pw) {
this.pw = pw;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getGender() {
return gender;
}
public void setGender(String gender) {
this.gender = gender;
}
public String getHomephone() {
return homephone;
}
public void setHomephone(String homephone) {
this.homephone = homephone;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
@Override
public String toString() {
return "LBMmemberDTO [id=" + id + ", pw=" + pw + ", name=" + name + ", gender=" + gender + ", homephone="
+ homephone + ", phone=" + phone + ", email=" + email + "]";
}
}
LBMBOARDDTO
package org.lhr.DTO;
public class LBMboardDTO {
int bno;
String title;
String content;
String date;
int view;
public int getBno() {
return bno;
}
public void setBno(int bno) {
this.bno = bno;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public String getDate() {
return date;
}
public void setDate(String date) {
this.date = date;
}
public int getView() {
return view;
}
public void setView(int view) {
this.view = view;
}
@Override
public String toString() {
return "LBMboardDTO [bno=" + bno + ", title=" + title + ", content=" + content + ", date=" + date + ", view="
+ view + "]";
}
}
BOARD DTO
package org.lhr.DTO;
import java.util.ArrayList;
public class BoardDTO {
private int bno;
private String title;
private String content;
private String writer;
private String regdate;
private String updatedate;
private int readcnt;
private ArrayList<BoardAttachDTO> attachList;
public int getBno() {
return bno;
}
public void setBno(int bno) {
this.bno = bno;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public String getWriter() {
return writer;
}
public void setWriter(String writer) {
this.writer = writer;
}
public String getRegdate() {
return regdate;
}
public void setRegdate(String regdate) {
this.regdate = regdate;
}
public String getUpdatedate() {
return updatedate;
}
public void setUpdatedate(String updatedate) {
this.updatedate = updatedate;
}
public int getReadcnt() {
return readcnt;
}
public void setReadcnt(int readcnt) {
this.readcnt = readcnt;
}
public ArrayList<BoardAttachDTO> getAttachList() {
return attachList;
}
public void setAttachList(ArrayList<BoardAttachDTO> attachList) {
this.attachList = attachList;
}
@Override
public String toString() {
return "BoardDTO [bno=" + bno + ", title=" + title + ", content=" + content + ", writer=" + writer
+ ", regdate=" + regdate + ", updatedate=" + updatedate + ", readcnt=" + readcnt + ", attachList="
+ attachList + "]";
}
}
'Programming > 게시판 만들기' 카테고리의 다른 글
[게시판 만들기] service & implement (0) | 2021.02.14 |
---|---|
[게시판 만들기] MAPPER (0) | 2021.02.14 |
[게시판 만들기] board controller / member controller (0) | 2021.02.14 |
[게시판 만들기] member add / list / detail (0) | 2021.02.14 |
[게시판 만들기] addmember / login / boardwrite / boardmodify / boardlist / boarddetail (0) | 2021.02.14 |