Hi,
 
I have an existing xml schema that defines a <class> element.
However, the castor source generator produced java code which doesn't compile
(there is a getClass method, conflicting with java.Object.getClass ...)
What is the most appropriate way to do that (apart from modifying the xsd, which is not an option)
 
I've tried to use a mapping file like the following but this is not conclusive.
<?xml version="1.0"?>
<!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Object Mapping DTD Version 1.0//EN" "http://castor.exolab.org/mapping.dtd">
<mapping>
        <class name="generated.xxxJavaClass" auto-complete="true">
                <map-to xml="class"/>
        </class>
</mapping>
 
Eric.
 

Reply via email to