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:Christian Pesch (chri@coremedia.com)
Date:Oct 18, 2004 1:42:50 am
List:org.apache.db.ojb-user

Thomas Dudziak wrote:

BOUESSAY Christian wrote:

There is an association (1:n) between 2 classes: [..] 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.

Could you explain, where the complexity comes from?

The requirement to define foreign keys on the database schema seems reasonable to me. At least, I've copied the schema definition in my application and added foreign key constraints to it.

Maybe one could take some assumptions and eliminate the need for a manual step in a simple setup without redirection tables and inheritance and ...?

Christian