Martin and Bruce,
thanks for your answers, everything is ok now.
Cheers,
Ben
Martin, Margaret wrote:
> Ben,
> In a 1:M, you have to tell Castor what field to use for the mapping if you
> want to use something other than the identity. In your case, I believe if
> you change the mapping for subscriptions in newsletter to contain the
> many-key mapping like below, then things should work fine... hope this helps
> -
>
> Margaret Martin
>
>
>
> <class name="test.Newsletter" identity="id" key-generator="IDENTITY">
> <map-to table="newsletter"/>
> <field name="id" type="integer" required="true">
> <sql name="id"/>
> </field>
> ...
> <field name="subscriptions"
> type="test.Subscription" collection="vector">
> <sql many-key="newsletter"/>
> </field>
>
> </class>
>
--
Benjamin Peter +49-69-96244395
Application Engineer Moerfelder Landstr. 55
(zentropy:partners) 60598 Frankfurt, Germany
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev