| This used to work fine in 4.3.11. Ill provide a test case right away. The problem does NOT happen if ManyToMany is bidirectional.
@Entity
@Table(name = "Something")
public class Parent {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@ManyToMany
private List<Child> children = new ArrayList<Child>();
}
@Entity
public class Child {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
}
this results in the following create table for mapping
create table Something_Child (Parent_id bigint not null, children_id bigint not null)
Shouldn't here be Something_id instead of Parent_id ? |