I have the following mapping:
//...
@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;
//...
}
How can specify the names of the foreign keys in table "A_B"? (FK_A_ID and FK_B_ID)
Thanks in advance, Neuquino