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 Andy Czerwonka <cz...@arcticpenguin.ca> on 2003/09/12 02:45:38 UTC
id in the class
Hi there,
I'm new to this list. What I'm looking for is an explanation as to why
I need to to do the following:
class Job {}
class Person {
protected Job job;
protected int jobId;
}
I realize that OJB uses the unique ID, but can't it do something similar
to Toplink, where you don't need to store the id the aggregate?
--
Andy Czerwonka
Arctic Penguin Open Source Solutions Inc.
(403) 547-8892
(403) 540-6133 (mobile)
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: id in the class
Posted by Michael Becke <be...@u.washington.edu>.
Andy,
I think anonymous keys are what you're looking for
<http://db.apache.org/ojb/howto-use-anonymous-keys.html>.
Mike
On Thursday, September 11, 2003, at 08:45 PM, Andy Czerwonka wrote:
> Hi there,
>
> I'm new to this list. What I'm looking for is an explanation as to why
> I need to to do the following:
>
> class Job {}
> class Person {
>
> protected Job job;
> protected int jobId;
> }
>
> I realize that OJB uses the unique ID, but can't it do something
> similar
> to Toplink, where you don't need to store the id the aggregate?
>
> --
> Andy Czerwonka
> Arctic Penguin Open Source Solutions Inc.
> (403) 547-8892
> (403) 540-6133 (mobile)
>
>
> ---------------------------------------------------------------------
> 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