Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2682

Vertical Inheritance: DB-generated PK doesn't propagate from the root to children

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0.2, 4.1
    • Fix Version/s: None
    • Component/s: Core Library
    • Labels:
      None

      Description

      In the vertical inheritance setup, if the root entity has DB-generated PK it doesn't propagate to subclasses. Insert fails with SQL error as PK is NULL in the subclass table.

      This works in Cayenne 4.2 as it has new FlushAction implementation.

        Attachments

          Activity

            People

            • Assignee:
              ntimofeev Nikita Timofeev
              Reporter:
              ntimofeev Nikita Timofeev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: