cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aristedes Maniatis <...@ish.com.au>
Subject Re: Table with no sequence
Date Fri, 20 Mar 2009 00:46:59 GMT

On 20/03/2009, at 10:07 AM, hans@welinux.cl wrote:

> Hi,
>
> We have a legacy table that have a meaningful primary key, many code  
> depends on it and it's not possible to alter it.
> We are building new java applications that need to insert in it.
>
> We would like to cayenne it and not use any sequence at all for  
> making inserts...
>
> ¿ it's possible to do it ?


Choose "database generated" as your PK generation strategy in the  
modeler.

Ari



-------------------------->
ish
http://www.ish.com.au
Level 1, 30 Wilson Street Newtown 2042 Australia
phone +61 2 9550 5001   fax +61 2 9550 4001
GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A



Mime
View raw message