Board(게시판 Class)에 게시자(User Class) FK 설정 (ManyToOne)
@ManyToOne
@JoinColumn(name="userId")
private User user;
사용자(User class)의 Id(PK)
@Id // Primary Key
@GeneratedValue(strategy = GenerationType.IDENTITY) // 프로젝트에 연결된 DB의 넘버링 전략에 맞춤.
private int id; // 시퀀스, auto_increment