Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Done
-
None
-
None
-
None
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.