java.lang.IllegalArgumentException: You are attempting to link to a primary key column in table "Kirja" in a foreign key that is already linked to primary key c olumns in table "Kirjailija".

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

    Problem with reverse mapping

    Oracle Community | 1 decade ago | 3004
    java.lang.IllegalArgumentException: You are attempting to link to a primary key column in table "Kirja" in a foreign key that is already linked to primary key c olumns in table "Kirjailija".

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      You are attempting to link to a primary key column in table "Kirja" in a foreign key that is already linked to primary key c olumns in table "Kirjailija".

      at com.solarmetric.rd.kodo.impl.jdbc.meta.Mappings.createClassMapping()
    2. com.solarmetric.rd
      ImportTool.main
      1. com.solarmetric.rd.kodo.impl.jdbc.meta.Mappings.createClassMapping(Mappings.java:160)
      2. com.solarmetric.rd.kodo.impl.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:279)
      3. com.solarmetric.rd.kodo.impl.jdbc.meta.MappingRepository.getMetaData(MappingRepository.java:147)
      4. com.solarmetric.rd.kodo.impl.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:158)
      5. com.solarmetric.rd.kodo.impl.jdbc.meta.compat.ImportTool.getMapping(ImportTool.java:126)
      6. com.solarmetric.rd.kodo.impl.jdbc.meta.compat.ImportTool.importMappings(ImportTool.java:57)
      7. com.solarmetric.rd.kodo.impl.jdbc.meta.compat.ImportTool.run(ImportTool.java:408)
      8. com.solarmetric.rd.kodo.impl.jdbc.meta.compat.ImportTool.main(ImportTool.java:385)
      8 frames