8.1 영속 계층의 구현 준비
8.2 영속 영역의 CRUD 구현
org.zerock.domain.BoardVO.java
package org.zerock.domain;
import java.util.Date;
import lombok.Data;
@Data
public class BoardVO {
private Long bno;
private String title;
private String content;
private String writer;
private Date regdate;
private Date updateDate;
}
org.zerock.mapper.BoardMapperInterface.java
package org.zerock.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Select;
import org.zerock.domain.BoardVO;
public interface BoardMapperInterfase {
@Select("select * from tbl_board where bno > 0")
public List<BoardVO> getList();
}
org.zerock.mapper.BoardMapperInterfaceTests.java