Menu

Mapper not specified or found for Double

Help
2004-08-11
2004-08-12
  • Henry Tafolla

    Henry Tafolla - 2004-08-11

    Hi,

    I have generated the jaxor files from and Oracle 8.1.7 schema and have noticed that any field with a type of NUMBER without a length specified is referenced as a double in the generated XML.  And since no precision is set in Oracle I believe this is correct.  The issue I have is when I try to run the generator I receive the following error:

    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'g
    etFactoryKeysAsParamList' in  class net.sourceforge.jaxor.parser.AttributeList t
    hrew exception class net.sourceforge.jaxor.util.SystemException : Mapper not spe
    cified and mapper not found in registry for: Double

    How do I register a mapper to handle this situation?

    I noticed in the example there is a mapper.registry that is referenced in the jaxor target.  My question is what are the parameters to set in this file to register a Double?

    Thank You,
    Henry

     
    • Michael Rettig

      Michael Rettig - 2004-08-12

      You just need to map the name to the mapper name.

      Double=net.sourceforge.jaxor.mappers.DoubleMapper

      I updated the code so you won't have to provide this override in the future.

      Regards,

      Mike Rettig
      Jaxor Developer

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.