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
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards 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