com.demo.beans패지키 안에
public class BoardInfoBean {
private int board_info_idx; //테이블명과 동일하게
private String board_info_name; //테이블명과 동일하게
public int getBoard_info_idx() {
return board_info_idx;
}
public void setBoard_info_idx(int board_info_idx) {
this.board_info_idx = board_info_idx;
}
public String getBoard_info_name() {
return board_info_name;
}
public void setBoard_info_name(String board_info_name) {
this.board_info_name = board_info_name;
}
}
public class ContentBean {
private int content_idx;
private String content_subject;
private String content_text;
private String content_file;
private int content_writer_idx;
private int content_board_idx;
private String content_date;
}
public class UserBean {
private int user_idx;
@Size(min=2, max=4, message = "이름은 2자에서 4자까지 ")
@Pattern(regexp = "[가-힣]*", message = "한글만 사용가능")
private String user_name;
private String user_id;
private String user_pw;
}