1 Reply Latest reply on Jun 11, 2004 3:50 AM by 3004

    horizontal mapping + MappingInfoNotFoundException

    3004
      Hi,

      i got a problem with the mappingtool.
      I'am using horizontal mapping.
      The abstract superclass Person has an primary key field called id.

      Here is the jdo-metadata from package.jdo:

      <class name="Person" identity-type="application"
      objectid-class="PersonId">
      <field name="location" embedded="true"/>
      <field name="id" primary-key="true"/>
      <field name="kidNames">
      <collection element-type="java.lang.String"/>
      </field>
      </class>

      Here is the mapping data from package.mapping:

      <class name="Person">
      <jdbc-class-map type="horizontal"/>
      </class>

      I looked at the manual, section 7.6.4.

      Thank you

      Zach

      688 INFO [main] kodo.Tool - Mapping tool running on type "class
      xxx.persistence.jdo.business.Course" with action "validate".
      kodo.jdbc.meta.MappingInfoNotFoundException: No mapping information was
      found fo
      r "xxx.business.Person.id".
      at
      kodo.jdbc.meta.RuntimeMappingProvider.getFieldMapping(RuntimeMappingP
      rovider.java:149)
      at
      kodo.jdbc.meta.MappingRepository.getFieldMapping(MappingRepository.ja
      va:429)
      at
      kodo.jdbc.meta.AbstractClassMapping.getFieldMapping(AbstractClassMapp
      ing.java:911)
      at
      kodo.jdbc.meta.AbstractClassMapping.getFieldMapping(AbstractClassMapp
      ing.java:888)
      at
      kodo.jdbc.meta.AbstractClassMapping.getFieldMapping(AbstractClassMapp
      ing.java:666)
      at
      kodo.jdbc.meta.RuntimeMappingProvider.initialize(RuntimeMappingProvid
      er.java:89)
      at
      kodo.jdbc.meta.MappingRepository.getMappingInternal(MappingRepository
      java:364)
      at
      kodo.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:30
      7)
      at
      kodo.jdbc.meta.AbstractFieldMapping.getTypeMapping(AbstractFieldMappi
      ng.java:661)
      at
      kodo.jdbc.meta.OneToOneFieldMapping.fromMappingInfo(OneToOneFieldMapp
      ing.java:123)
      at
      kodo.jdbc.meta.RuntimeMappingProvider.getFieldMapping(RuntimeMappingP
      rovider.java:160)
      at
      kodo.jdbc.meta.MappingRepository.getFieldMapping(MappingRepository.ja
      va:429)
      at
      kodo.jdbc.meta.AbstractClassMapping.getFieldMapping(AbstractClassMapp
      ing.java:911)
      at
      kodo.jdbc.meta.AbstractClassMapping.getFieldMapping(AbstractClassMapp
      ing.java:891)
      at
      kodo.jdbc.meta.AbstractClassMapping.getMappings(AbstractClassMapping.
      java:854)
      at
      kodo.jdbc.meta.AbstractClassMapping.getDeclaredFieldMappings(AbstractClassMapping.java:617)
      at
      kodo.jdbc.meta.AbstractClassMapping.resolve(AbstractClassMapping.java
      :758)
      at
      kodo.jdbc.meta.BaseClassMapping.resolve(BaseClassMapping.java:323)
      at
      kodo.jdbc.meta.MappingRepository.resolve(MappingRepository.java:390)
      at
      kodo.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:30
      8)
      at
      kodo.jdbc.meta.AbstractFieldMapping.getTypeMapping(AbstractFieldMappi
      ng.java:661)
      at
      kodo.jdbc.meta.OneToOneFieldMapping.fromMappingInfo(OneToOneFieldMapp
      ing.java:123)
      at
      kodo.jdbc.meta.RuntimeMappingProvider.getFieldMapping(RuntimeMappingP
      rovider.java:160)
      at
      kodo.jdbc.meta.MappingRepository.getFieldMapping(MappingRepository.ja
      va:429)
      at
      kodo.jdbc.meta.AbstractClassMapping.getFieldMapping(AbstractClassMapp
      ing.java:911)
      at
      kodo.jdbc.meta.AbstractClassMapping.getFieldMapping(AbstractClassMapp
      ing.java:891)
      at
      kodo.jdbc.meta.AbstractClassMapping.getFieldMapping(AbstractClassMapp
      ing.java:666)
      at
      kodo.jdbc.meta.RuntimeMappingProvider.initialize(RuntimeMappingProvid
      er.java:89)
      at
      kodo.jdbc.meta.MappingRepository.getMappingInternal(MappingRepository
      java:364)
      at
      kodo.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:30
      7)
      at
      kodo.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:16
      2)
      at kodo.jdbc.meta.MappingTool.validate(MappingTool.java:621)
      at kodo.jdbc.meta.MappingTool.run(MappingTool.java:939)
      at kodo.jdbc.meta.MappingTool.run(MappingTool.java:850)
      at kodo.jdbc.meta.MappingTool.main(MappingTool.java:783)
      Exception in thread "main"