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

        Tore Halset created issue -
        Henri Yandell made changes -
        Field Original Value New Value
        Project Import Sat Mar 21 00:51:04 PDT 2009 [ 1237621864637 ]
        Ari Maniatis made changes -
        Fix Version/s Undefined future [ 12313763 ]
        Ari Maniatis made changes -
        Workflow jira [ 12456393 ] Cayenne workflow [ 12487796 ]

          People

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

            Dates

            • Created:
              Updated:

              Development