You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Guillaume Nodet <gu...@deliasystems.com> on 2004/02/05 15:08:30 UTC

Identity with double column primary key

I'm using double column primary keys.
When i retrieve an object with the getObjectByIdentity, 
i construct a new Identity object giving the two values
for my columns. The problem is that i ran some tests on
another computer, and the sql statements was badly built.
Ojb had inverted the values assignements to the columns.
So my question is: how can i know the order of the 
primary key columns when building an Identity ?

Regards,

Guillaume


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


RE: Identity with double column primary key

Posted by Guillaume Nodet <gu...@deliasystems.com>.
Sorry, the order of my primary keys in the repository have changed...

-----Message d'origine-----
De : Guillaume Nodet [mailto:guillaume.nodet@deliasystems.com]
Envoye : jeudi 5 fevrier 2004 15:09
A : OJB Users List
Objet : Identity with double column primary key


I'm using double column primary keys.
When i retrieve an object with the getObjectByIdentity, 
i construct a new Identity object giving the two values
for my columns. The problem is that i ran some tests on
another computer, and the sql statements was badly built.
Ojb had inverted the values assignements to the columns.
So my question is: how can i know the order of the 
primary key columns when building an Identity ?

Regards,

Guillaume


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org