toplink-6094: automatic schema generation?
Hi guys!
I've written another post before about the error toplink-6094, parameterNameMismatch.. and it's about mapping a relationship one to many.
What i found is that if i change the table generation strategy from none to create-tables, the error does not come out, seems to be fine. But, still something strange, what do u guys think?
Simple ex.
@Entity
public class A implements Serializable {
@Id
private Integer id;
private String name;
@OneToMany
@JoinTable(
name="USUARIO_PROFISSAO",
joinColumns=@JoinColumn(name="CD_USUAR",
referencedColumnName="cdUsuar"),
inverseJoinColumns=@JoinColumn(name="CD_PROFI",
referencedColumnName="cdProfi")
)
private java.util.List <B> bList;
// gets and sets
}
@Entity
public class B implements Serializable {
@Id
private Integer id;
private String desc;
// gets and sets
}
if u do something like:
A a = entityManager(A.class, 1);
and then!!!
a.getbList().size() //ERROR
Am I doing something wrong?
cheers!!!

