cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Savva Kolbachev (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAY-2100) Add supporting generated keys for PostgreSQL
Date Wed, 10 Aug 2016 13:19:21 GMT

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

Savva Kolbachev updated CAY-2100:
---------------------------------
    Description: 
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.

  was:
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



> 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)

Mime
View raw message