hi oleg..
about identity... i wonder if objects _require_ to have a field (say)
'identity' that map to the primary key. it seem that they do.
if not, ive passed through, so how can i achieve that.
if yes, what about a pool of oid? (some kind of OIDManager and Hashtable
perhaps?)
--
gilles
>From: Oleg Nitz <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: [castor-dev] identity necessary?
>Date: Wed, 1 Aug 2001 16:34:52 +0300
>
>Hi Juergen,
>
>HANKE,JUERGEN (HP-Germany,ex1) wrote:
> > Why do I need to specify the identity in the mapping file?
>Because ;-)
>Java objects must be uniquely identified by class and identity,
>it's a design of Castor JDO.
>
> > I have a table which has no primary key, only a foreign key. But the
>foreign key is not
> > unique for each row. Or do I need the identity and have to add a dummy
> > sequence number which is unique?
>Yes, you do.
>
>Oleg
>
>-----------------------------------------------------------
>If you wish to unsubscribe from this mailing, send mail to
>[EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
>
_________________________________________________________________
T�l�chargez MSN Explorer gratuitement � l'adresse
http://explorer.msn.fr/intl.asp
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev