cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <>
Subject Re: depPk
Date Mon, 26 Nov 2012 06:33:32 GMT

On Nov 24, 2012, at 4:52 PM, emeka okafor <> wrote:

> hello,
> I have two questions:
> 1 - What does "toDependentPK" means?

In case of 2 tables having a relationship between PK columns on both sides, it instructs Cayenne
on which side of the relationship a PK should be generated (or provided by user) - "master
side", and on which side it should be taken from the master - "dependent side".

> 2 - I would like to use a column of type String as PK. What primary key strategy should
I use since I am going to set that key in my application?

User-provided PK is compatible with all strategies. So keeping it default should be fine.


View raw message