Thanks I will give it a try.

BTW - can you tell me where in the documentation this was (I looked as well
but could not find it).

Thanks,

GB
----- Original Message -----
From: "Brian Nahas" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 01, 2002 3:49 PM
Subject: Re: Primary Key Assignment prior to Store


> Do the following:
>
> import org.apache.ojb.broker.Identity;
>
> ...
>
> Identity userId = new Identity(user);
>
> ...
>
> and that should populate the user object with a primary key id.
>
> This is in the documentation somewhere but it took me a while to track it
> down myself.  Hope this helps...
> -Brian
>
> ----- Original Message -----
> From: "Gary A. Bartlett" <[EMAIL PROTECTED]>
> To: "OJB Users List" <[EMAIL PROTECTED]>
> Sent: Tuesday, October 01, 2002 2:12 PM
> Subject: Primary Key Assignment prior to Store
>
>
> > Question -
> >
> >   Is there a way with OJB to have the primary key for a new persistent
> > object be assigned before it is stored into the database ?
> >
> > Thanks,
> >
> > Gary Bartlett
> >
> >
> > --
> > To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
> >
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to