Mira, Have a look at
http://castor.org/sourcegen.html#Class-Creation/Mapping To see how class generation can be configured. Regards Werner > -----Original Message----- > From: Mira Drazka [mailto:[EMAIL PROTECTED] > Sent: Freitag, 28. April 2006 13:51 > To: [email protected] > Subject: [castor-user] Source Code Generator - generating > classes from XSD schema - for complexType > > Hello, > > I have problems with too many classes generated from XSD > schema by using Source Code Generator. > There are generated classes for every complexType and also > for every element of this complexType. > > For example: > element: > <xs:element name="identityRange" type="IdentityRangeType" > minOccurs="0" > maxOccurs="unbounded"/> > complexType: > <xs:complexType name="IdentityRangeType"> > <xs:attribute name="firstCustomer" type="xs:string" > use="required"/> > <xs:attribute name="lastCustomer" type="xs:string" > use="required"/> </xs:complexType> > > For this element are generated two classes: > > public class IdentityRangeType implements > java.io.Serializable; for complexType > > public class IdentityRange extends IdentityRangeType; for element > > I don't understand, why it is done this way, why is generated > 2 classes, "element class" is inherited from "complexType class". > I think one class only for complexType should be enough. > > Is there any possibility to generate only classes for > comlexTypes and not for element? > Or the other way: to generate only classes for element and > not for complexType? > I would like only to reduce the number of generated classes. > > Thanks for reply, > Mira > > > ------------------------------------------------- > If you wish to unsubscribe from this list, please send an > empty message to the following address: > > [EMAIL PROTECTED] > ------------------------------------------------- > > > ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] -------------------------------------------------

