Exemplo n.º 1
0
 public static void getWTFListTest() {
   BoardDao boardDao = new BoardDao();
   List<BoardVo> list = boardDao.getListForViewListPageIDontKnowWhatToNameTheMethod();
   for (BoardVo vo : list) {
     System.out.println("! : " + vo.toString());
   }
 }
Exemplo n.º 2
0
 public static void updateTest() {
   BoardVo vo = new BoardVo();
   vo.setTitle("up Title");
   vo.setContent("up Content");
   vo.setViewCnt(1L);
   BoardDao dao = new BoardDao();
   dao.update(2L, vo);
 }
Exemplo n.º 3
0
  public static void insertTest() {
    BoardDao dao = new BoardDao();
    BoardVo vo = new BoardVo();

    vo.setTitle("TITLE!");
    vo.setContent("CONTENT!");
    vo.setMemberNo(Long.parseLong("2"));
    vo.setMemberName("MEMBER_NAME!");

    dao.insert(vo);
  }