All

We are currently using 0.9.3.  We are planning to upgarde to the
latest version. We are running into a issue where the types classes
are generated (using SourceGenerator) with different names. This is
causing lot of  issues since we use the classes all over the place. We
have around 312 type classes and almost 412 Regualar classes generated
by Caster.

Part of Sample XSD:
        <xsd:element name="ABC">
                <xsd:complexType>
                        <xsd:attribute name="MYNAME" type="xsd:string"/>
                        <xsd:attribute name="THISISTHEISSUE" default="Y">
                                <xsd:simpleType>
                                        <xsd:restriction base="xsd:NMTOKEN">
                                                <xsd:enumeration value="Y"/>
                                                <xsd:enumeration value="N"/>
                                        </xsd:restriction>
                                </xsd:simpleType>
                        </xsd:attribute>
                </xsd:complexType>
        </xsd:element>
        <xsd:element name="XYZ">
                <xsd:complexType>
                        <xsd:attribute name="MYNAME2" type="xsd:string"/>
                        <xsd:attribute name="THISISTHEISSUE" default="Y">
                                <xsd:simpleType>
                                        <xsd:restriction base="xsd:NMTOKEN">
                                                <xsd:enumeration value="Y"/>
                                                <xsd:enumeration value="N"/>
                                        </xsd:restriction>
                                </xsd:simpleType>
                        </xsd:attribute>
                </xsd:complexType>
        </xsd:element>

With the current version 0.9.3 it is generating one class for
THISISTHEISSUEType.java but with 0.9.6 it generating two classes
ABCTHISISTHEISSUEType.java and XYZTHISISTHEISSUEtype.Java.   Since in
our code we refer THISISTHEISSUEType.java at many places, now we are
forced to make changes to all the places we use this.

I know you may suggest using <xsd:element ref="THISISTHEISSUE"/> but
thats also not simple.

So is there a way that I can set something in caster.properties file
that if I use SourceGenerator I get the same "type" file generated.

Thank you in advance
-- 
Ratna S. Manne



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

Reply via email to