cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierre Lavignotte <>
Subject Re: How to create Meaningful Primary Keys?
Date Mon, 02 Feb 2009 11:49:27 GMT
Hi Nikos,

If you need PK for all your tables, then maybe you need to generate them.
But if you only need to use them for a couple tables then you should look at
DataObjectUtils class.


Pierre Lavignotte
Ingénieur Conception & Développement

On Mon, Feb 2, 2009 at 12:35 PM, Νίκος Παράσχου <> wrote:

> Hello,
> It is the first time I am using cayenne and I have some questions
> regarding the primary keys.
> What I want to do is select some rows of a table where the PK has a
> specific value. The problem is I can't access the PK. I can specify
> qualifiers only with the non-PK columns. The PKs I am using have some
> meaning (they are not just numbers) so it is very important to be able
> to use them.
> How can I add the PK to the fields of the Object Entities?
> In this page
> the answer is to create a Meaningful Primary Key.
> How can I create Meaningful Primary Keys?
> Are there any security issues when using Meaningful Primary Keys?
> Thank you for your time,
> Nikos

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