Hi,
Unfortunately you can't use identity columns for PK with Cayenne. So
you'd have to either avoid using identity columns, or mark another
(non-identity) column as a PK (maybe even a meaningful column, like
loginId, so that it is guaranteed unique).
We will eventually support it, so I am open to suggestions.
Unfortunately the flow of PK generation is just too different with
identity columns, so it'll take some refactoring of the code.
Andrus
On Jun 7, 2004, at 1:35 AM, Krog Jensen Lars (SIX) wrote:
> Hi all,
>
> I recently had the pleasant experience learning about Cayenne OMR,
> very nice and
> easy to learn and use.
>
> Though I have a problem saving an object into a table where the pk
> field, userid, is an identity column. The DB server,
>
> Sybase 12.0, does not allow any values for this field to be set, it is
> generated by the server, how do I tell this to Cayenne.
>
> Regards
>
> Lars Krog-Jensen
This archive was generated by hypermail 2.0.0 : Mon Jun 07 2004 - 09:39:26 EDT