我在书和作者之间有多对多的映射
@Enity
public class Book{
private Long id;
private String name;
...
@Id
@Column(name="book_id")
public getId(){
...
}
@ManyToMany(
@JoinTable(name="book_author",
joinColumns = @JoinColumn(name="book_id"),
inverseJoinColumns = @JoinColumn(name="????")
)
public List<Author> getAuthors(){
...
}
}
@Enity
public class Author{
@EmbeddedId;
private AuthorPk authorPk;
...
}
我如何在 inverseJoinColumn 上进行多对多映射,因为它是一个复合键?