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 Ziv Yankowitz <zi...@traiana.com> on 2004/02/05 14:36:46 UTC
OJB - Constructor.
Folks,
Can anyone tell me if we must have an empty constructor in Objects we want to persist and read?
thanks.
---------------------------------------------------------------------
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
Identity with double column primary key
Posted by Guillaume Nodet <gu...@deliasystems.com>.
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: OJB - Constructor.
Posted by Thomas Dudziak <to...@first.gmd.de>.
On Thu, 5 Feb 2004, Ziv Yankowitz wrote:
> Folks,
>
> Can anyone tell me if we must have an empty constructor in Objects we want to persist and read?
Either that (it can be private), or you use factory-class +
factory_method.
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org