My sample code:
public class A {
@OneToMany
@OrderColumn(name = "ORDER")
private List<B> bList;
...
}
public class B {
@Column(name = "ORDER")
private Integer order; // I need this field because I want
// to use the ordering field in my query.
...
}
With this code EclipseLink try to create the "ORDER" column 2 times throwing an exception and don't create the B table.
Thanks.