When you map a DB relationship from another table to this table, check its "To 
Dep PK" checkbox. This will tell Cayenne to take a PK from that master entity.

Andrus

> On Nov 1, 2018, at 7:01 AM, Tony Giaccone <t...@giaccone.org> wrote:
> 
> I'm using essentially a join table, and the primary key is set to the two
> columns that constitute the join.  I clearly don't have something set up
> because I'm getting this error message:
> 
> 
> Primary Key autogeneration only works for a single attribute.
> 
> I clearly don't need a primary key generated or this table because the key
> is the combo of the two keys from the related tables.
> 
> How do I tell Cayenne to try and set the key value automatically and accept
> the two values from the other tables together make a composite key.
> 
> 
> 
> Tony Giaccone

Reply via email to