Book 持有 Author 的外鍵,所以 @JoinColumn 放在 Book.author. @OneToMany 放在non owning side的實體,並設定 mappedBy ,其值為關係實體外鍵屬性的 ...
確定! 回上一頁