cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Gentry <>
Subject Re: DB with totally manually managed primary keys
Date Tue, 18 Oct 2016 15:38:35 GMT
Hi Hugi,

Take a look at the model/code under here:

Essentially you map the meaningful key as a Java attribute and set the DB
PK generation strategy to "Default" for those tables.  As long as you
supply the meaningful PKs, Cayenne won't try to use the AUTO_PK_SUPPORT
table that "Default" typically uses.


On Tue, Oct 18, 2016 at 11:27 AM, Hugi Thordarson <> wrote:

> Hi all,
> I’m currently working on a legacy DB where primary key values are both
> meaningful and completely manually managed in code (no automatic PK
> generation, sequences or anything, but have to be specified by the
> programmer).
> How do I tell Cayenne to not attempt to create PKs?
> Cheers,
> - hugi

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message