Hi,
I'm new to Castor and I would like to know more about Castor behavior if I try to use java class in XSD file (java mapping).
I explain : in the schema below I use "com.mycompany.Address" java class (it's a personal java class) to type element name "address".
 
<schema>
 
  <complexType name="mystructure">
    <sequence>
      <element name="myname" type="xsd:string"/>
      <element name="myaddress" type="com.mycompany.Address"/>
    </sequence>
  </complexType>
 
</schema>
What's the way to tell  Castor to generate java source without ignoring the "myaddress" field. I would like to have result as shown below :
 
mystructure.java
{
  boolean _myname;
  com.mycompany.Address _myaddress;
 
......
......
}
 
Why I want to do this ? My application build *dynamically* (on fly) an XSD Schema that use java class that are *dynamically* generated too. So I dont' know in advance what  the package names of those generated classes will be. Then it's impossible to use static Castor Property for java mapping using namespace.
 
Thanks for your help.
 
Best regards,
 
Olivier

Reply via email to