BOUESSAY Christian wrote:
Hello,
There is an association (1:n) between 2 classes:
/**
* @ojb.class
* @ojb.field name="idOM" jdbc-type="INTEGER"
*/
public class Label {
/**
* @ojb.field primarykey="true"
*/
private int id;
// ...
}
/**
* @ojb.class
*/
class OM {
/**
* @ojb.field primarykey="true"
*/
private int id;
/**
* @ojb.collection element-class-ref="Label"
* foreignkey="idOM"
*/
private Collection labels;
// ...
}
In the repository_user.xml :
<collection-descriptor
name="labels"
element-class-ref="Label"
<inverse-foreignkey field-ref="idOM"/>
</collection-descriptor>
In the project-schema.xml, there is no <foreign-key> declaration for the table OM
...
What did I miss?
For collections, the generation of foreignkeys in the database is
currently not supported due to the complexities involved when having
indirection tables, inheritance etc.
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]