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!!!

[1156 byte] By [lekka] at [2007-10-3 4:07:55]
# 1
Why do you think that it's a schema generation problem?You do not initialize bList, so a.getbList().size() should throw an NPE. What kind of error do you get?regards,-marina
jdcmarinaa at 2007-7-14 22:07:40 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...