Denna,
You'll have to check "to dep pk" checkbox on the Deal (master) side of the
relationship -
http://objectstyle.org/cayenne/modelerguide/modeling-db-layer/to-dep-pk.html
This way Cayenne will know which table is master (so a PK is generated for
it) and which one is dependenct (i.e. its pk is taken from master).
Andrus
> Hi,
>
> I have two object Deal and Review and 1 to 1 relation between them. If I
> use dealId to join those two tables then it does not create entry for
> Deal in auto_pk_support.And when I try to create that object it gives me
> exception that "Error Generating PK : entity not supported :Deal"
>
>
> If I use ReviewId then it does not create entry for Review. And when I
> try to create that object it gives me exception that "Error Generating
> PK : entity not supported : Review"
>
> Any idea on this? I have tried creating only pk support from cayenne
> modeler but does not help.
>
> Thanks,
> Denna
>
>
>
> ---------------------------------
> Yahoo! Mail Mobile
> Take Yahoo! Mail with you! Check email on your mobile phone.
This archive was generated by hypermail 2.0.0 : Mon May 23 2005 - 17:13:49 EDT