7 messages in org.apache.db.ojb-userRe: Collection foreignkey missing
FromSent OnAttachments
BOUESSAY ChristianSep 22, 2004 1:29 am 
Thomas DudziakSep 22, 2004 2:01 am 
Thomas ParadiesSep 22, 2004 2:06 am 
Christian PeschOct 18, 2004 1:42 am 
Thomas DudziakOct 18, 2004 5:15 am 
Christian PeschOct 18, 2004 5:39 am 
Thomas DudziakOct 18, 2004 7:40 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Collection foreignkey missingActions...
From:Thomas Paradies (para@transit-online.de)
Date:Sep 22, 2004 2:06:26 am
List:org.apache.db.ojb-user

Christian,

if project-schema.xml means torque-schema.xml have look at Tom's reply
http://nagoya.apache.org/eyebrowse/ReadMsg?listName=ojb-user@db.apache.org&msgNo=14428

Thomas

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?

Christian

(I'm a newbie with OJB/xdoclet. I didn't found it in the archive, neither in the docs...)