728x90
sql의 테이블 확인하고
vo의 필드(전역변수) 세팅
필요한 값들을 필드에 넣기
package com.kh.test.model;
import java.sql.Date;
public class Test {
public int seq;
public String writer;
public String title;
public String content;
public Date regDate;
public Test() {}
public Test(int seq, String writer, String title, String content, Date regDate) {
super();
this.seq = seq;
this.writer = writer;
this.title = title;
this.content = content;
this.regDate = regDate;
}
public int getSeq() {
return seq;
}
public void setSeq(int seq) {
this.seq = seq;
}
public String getWriter() {
return writer;
}
public void setWriter(String writer) {
this.writer = writer;
}
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 Date getRegDate() {
return regDate;
}
public void setRegDate(Date regDate) {
this.regDate = regDate;
}
}
728x90
반응형
'small steps > 1일 1코딩 - 코딩을 내 몸처럼' 카테고리의 다른 글
[1일1코딩][CSS] 후손 선택자 & flex, justify-content: space-between (0) | 2022.05.20 |
---|---|
[1일1코딩][Java-SQL] 전체 조회 dao (0) | 2022.05.19 |
[1일1코딩][Web] web.xml 배포서술자 (0) | 2022.05.16 |
[1일1코딩] (0) | 2022.05.15 |
[1일1코딩] (0) | 2022.05.14 |