Hibernateでの結合テーブルの自動生成
@JoinTable(name = "category_subcategory", joinColumns = @JoinColumn(name = "category_id"), inverseJoinColumns = @JoinColumn(name = "subcategory_id")) private SubCategory subCategory;
- joinColumns:所有者側のカラム
- inverseJoinColumns:被所有者側のカラム