com.solarmetric.kodo.runtime.FatalUserException: The current DBDictionary class "com.solarmetric.kodo.impl.jdbc.schema.dict.DB2Dictionary" does not support auto-incrementing primary key columns, but the persistence-capable type "Person" uses the AutoIncrementSequenceFactory. To proceed, you must either use a different sequence factory or a dictionary that is capable of supporting auto-incrementing primary keys.

Oracle Community | 3004 | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    DB2 identity column

    Oracle Community | 1 decade ago | 3004
    com.solarmetric.kodo.runtime.FatalUserException: The current DBDictionary class "com.solarmetric.kodo.impl.jdbc.schema.dict.DB2Dictionary" does not support auto-incrementing primary key columns, but the persistence-capable type "Person" uses the AutoIncrementSequenceFactory. To proceed, you must either use a different sequence factory or a dictionary that is capable of supporting auto-incrementing primary keys.

    Root Cause Analysis

    1. com.solarmetric.kodo.runtime.FatalUserException

      The current DBDictionary class "com.solarmetric.kodo.impl.jdbc.schema.dict.DB2Dictionary" does not support auto-incrementing primary key columns, but the persistence-capable type "Person" uses the AutoIncrementSequenceFactory. To proceed, you must either use a different sequence factory or a dictionary that is capable of supporting auto-incrementing primary keys.

      at com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.createPKColumns()
    2. com.solarmetric.kodo
      Mapping.createMapping
      1. com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.createPKColumns(ClassMapping.java:1655)
      2. com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.install(ClassMapping.java:1477)
      3. com.solarmetric.kodo.impl.jdbc.ormapping.Mapping.createMapping(Mapping.java:170)
      3 frames