我有以下映射:
//...
@Table(name="A")
public class A{
@ManyToMany(fetch = FetchType.LAZY)
@JoinTable(name = "A_B", joinColumns = {@JoinColumn(name = "A_ID")}, inverseJoinColumns = {@JoinColumn(name = "B_ID")})
public Set<B> getBs() {
return this.meals;
}
//...
}
//...
@Table(name="B")
public class B{
private int id;
private String description;
//...
}
如何指定表“A_B”中的外键名称?(FK_A_ID 和 FK_B_ID)
提前致谢, Neuquino