You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cayenne.apache.org by Lon Varscsak <lo...@gmail.com> on 2017/08/01 00:47:17 UTC

Identity column

Hey guys, I have a table (or three) that uses identity columns (Sybase
generated values…not like a sequence).  Looking at the 3.0 docs it suggests
that it supports this for SQLServer (which was originally based on
Sybase)…but I can’t seem to find it in the code.  Any idea where this is?
Does it still exist?

Thanks,

Lon

Re: Identity column

Posted by Lon Varscsak <lo...@gmail.com>.
Ah, sweet.  It works perfectly for Sybase, I’ll submit a pull request.

-Lon

On Tue, Aug 1, 2017 at 1:06 AM, Nikita Timofeev <nt...@objectstyle.com>
wrote:

> Hi Lon,
>
> Here is support for identity columns in SQLServerAdapter: [1] and [2].
> And yes SybaseAdapter doesn't support this.
>
> [1] https://github.com/apache/cayenne/blob/master/cayenne-
> server/src/main/java/org/apache/cayenne/dba/sqlserver/
> SQLServerAdapter.java#L93
> [2] https://github.com/apache/cayenne/blob/master/cayenne-
> server/src/main/java/org/apache/cayenne/dba/sqlserver/
> SQLServerAdapter.java#L138
>
> On Tue, Aug 1, 2017 at 3:47 AM, Lon Varscsak <lo...@gmail.com>
> wrote:
> > Hey guys, I have a table (or three) that uses identity columns (Sybase
> > generated values…not like a sequence).  Looking at the 3.0 docs it
> suggests
> > that it supports this for SQLServer (which was originally based on
> > Sybase)…but I can’t seem to find it in the code.  Any idea where this is?
> > Does it still exist?
> >
> > Thanks,
> >
> > Lon
>
>
>
> --
> Best regards,
> Nikita Timofeev
>

Re: Identity column

Posted by Nikita Timofeev <nt...@objectstyle.com>.
Hi Lon,

Here is support for identity columns in SQLServerAdapter: [1] and [2].
And yes SybaseAdapter doesn't support this.

[1] https://github.com/apache/cayenne/blob/master/cayenne-server/src/main/java/org/apache/cayenne/dba/sqlserver/SQLServerAdapter.java#L93
[2] https://github.com/apache/cayenne/blob/master/cayenne-server/src/main/java/org/apache/cayenne/dba/sqlserver/SQLServerAdapter.java#L138

On Tue, Aug 1, 2017 at 3:47 AM, Lon Varscsak <lo...@gmail.com> wrote:
> Hey guys, I have a table (or three) that uses identity columns (Sybase
> generated values…not like a sequence).  Looking at the 3.0 docs it suggests
> that it supports this for SQLServer (which was originally based on
> Sybase)…but I can’t seem to find it in the code.  Any idea where this is?
> Does it still exist?
>
> Thanks,
>
> Lon



-- 
Best regards,
Nikita Timofeev