Does this documentation page answer your question? https://cayenne.apache.org/docs/3.0/primary-key-generation.html
However, unless you have a specific need, I recommend you avoid meaningful primary keys as a general rule. Ari On 11/06/2016 5:19pm, Fredrik Widengren wrote: > Hello > I'm kind of new to Cayenne. So sorry if the question bordering to the > obvious. > > I'm trying find out how I can create records where the db does not auto > generate pk. > First I got an error where Cayenne complained on that the AUTO_PK table was > missing. After creating that, I can create records, but cayenne then picks > values from the auto_pk table. So obviously that's not what I want. I need > to be able to have a method where I can supply the pk value. > > I can't find any documentation on that. > > Thanks for any help. > > /Fredrik > -- --------------------------> Aristedes Maniatis GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A