예제 #1
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);
 }
예제 #2
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);
  }