package jdbcExam;
import java.util.List;
public class BookDAOTest {
public static void main(String[] args) {
BookDAO dao = new BookDAO();
// BookVO book = new BookVO();
// book.setBookTitle("다이어터");
// book.setPage(500);
// book.setAuthor("네온비");
// book.setContent("재밌당..");
// System.out.println(dao.addBook(book));
BookVO vo = dao.getBook(9);
// System.out.println(vo.getAuthor());
//
// System.out.println(vo);
List<BookVO> list = dao.getBookList();
for (BookVO bookVO : list) {
System.out.println(bookVO);
}
}
}
'프로그래밍 > 자바' 카테고리의 다른 글
guestbook VO, DAO (0) | 2016.01.20 |
---|---|
member (0) | 2016.01.19 |
BookDAO , BookVO (0) | 2016.01.14 |
DBUtil 이용하기 (0) | 2016.01.14 |
BookDAO (0) | 2016.01.14 |