Hibernate @ManyToOne @JoinColumn is always null
问题 I'm trying to implement One-to-Many relation between two tables using hibernate. Here is my code: @Entity public class Board { @Id @Column(name = "board_id") @GeneratedValue private long id; @Column private String owner; @Column private String title; @Column private String refresh; @Column private Timestamp createDate; @Column private Timestamp modifyDate; @OneToMany(mappedBy="board", cascade=CascadeType.ALL) private List<Item> items; public long getId() { return id; } public void setId(long