You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Savva Kolbachev (JIRA)" <ji...@apache.org> on 2016/08/10 14:42:20 UTC

[jira] [Closed] (CAY-2100) Add supporting generated keys for PostgreSQL

     [ https://issues.apache.org/jira/browse/CAY-2100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Savva Kolbachev closed CAY-2100.
--------------------------------
    Resolution: Done

> Add supporting generated keys for PostgreSQL
> --------------------------------------------
>
>                 Key: CAY-2100
>                 URL: https://issues.apache.org/jira/browse/CAY-2100
>             Project: Cayenne
>          Issue Type: Improvement
>            Reporter: Savva Kolbachev
>            Assignee: Savva Kolbachev
>             Fix For: 4.0.M4
>
>
> So, DbAttributes with isGenerated="true" flag will be treated by Cayenne as appropriate PostgreSQL types:
> JDBC INTEGER type as SERIAL type
> JDBC BIGINT type as BIGSERIAL type
> JDBC SMALLINT type as SMALLSERIAL type
> So, if you are going to use SERIAL and etc. types, you should set isGenerated flag to "true" for appropriate DbAttribute in the model.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)