[EMAIL PROTECTED] schrieb am 17.04.02:
> If I try to do what you said I have to make other table that handle the
> relation??
> 
> I have to put a collection in one side??? I don't want this because my
> relation is one to one.

I think a simple 1:1 can be done like this:

class A:

<field name="B" type="my.package.B">
<sql type="integer" name="b_id">
</field>

class B:

<field name="A" type="my.package.A">
<sql type="integer" name="a_id">
</field>

This assumes that your object ids are integers.

Diez
______________________________________________________________________________
F�r alle, die nicht genug WEB.DE bekommen k�nnen. 100 MB Speicher, SMS Preisvorteil 
und noch mehr Kommunikation unter http://club.web.de/?mc=021101

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to