Cayenne
  1. Cayenne
  2. CAY-421

DbGenerator and generated column

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.2 branch
    • Fix Version/s: Undefined future
    • Component/s: Core Library
    • Labels:
      None
    • Environment:
      PostgreSQL

      Description

      I am trying to generate the database from my model, but some things are missing.

      cayenne currently does create sequence for all tables.
      CREATE SEQUENCE pk_person INCREMENT 20 START 200;

      for tables with db-generated primary key cayenne should do something like:
      create sequence pk_person;
      alter table person alter person_id set default nextval('pk_person');

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Andrus Adamchik
            Reporter:
            Tore Halset
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development