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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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