news_id和resource_id都定义了2次,上面@Column用于自己表的更新,下面的@JoinColumn用于级联查询的时候的Join列。 @Entity @Table(name="newsresource") ...
確定! 回上一頁