>     >> Hi,
>     >> How can i set the name for the getter/setter-methods
>     >> of a referenced object:
>     >> 
>     >> <xsd:element name="Project">
>     >> <xsd:complexType>
>     >> <xsd:sequence>
>     >> <xsd:element name="id"   type="xsd:integer" minOccurs="1" maxOccurs="1"/>
>     >> <xsd:element name="name" type="xsd:string"  minOccurs="1" maxOccurs="1"/>
>     >> <xsd:element name="superProject" ref="Project" minOccurs="0" maxOccurs="1"/>
>     >> </xsd:sequence>
>     >> </xsd:complexType>
>     >> </xsd:element>
>     >> 
>     >> The name-attribute (superProject) is ignored, how can i set
>     >> my own method-names?
> 
> You could define a complexType-by-name and put a reference by another
> name in it. Something like:
> 
> <xsd:element name="Project" type="project"/>
> 
> <xsd:complexType name="project">
>   <xsd:sequence>
>     <xsd:element name="id"   type="xsd:integer" minOccurs="1" maxOccurs="1"/>
>     <xsd:element name="name" type="xsd:string"  minOccurs="1" maxOccurs="1"/>
>     <xsd:element name="superProject" type="project" minOccurs="0" maxOccurs="1"/>
>   </xsd:sequence>
> </xsd:complexType>

Thanks, that works.
Frank

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to