When using Castor 0.9.3 the Source Generator produced names in the following
manner:

Schema:
<xsd:element name="thing">
      <xsd:complexType>
         <xsd:attribute name="customer_name" use="optional">
            <xsd:simpleType>
               <xsd:restriction base="xsd:string">
                  <xsd:whiteSpace value="collapse"/>
                  <xsd:minLength value="0"/>
                  <xsd:maxLength value="4"/>
               </xsd:restriction>
            </xsd:simpleType>
         </xsd:attribute>
      </xsd:complexType>
</xsd:element>

Java declaration of customer_name Source Generator 0.9.3
        _customerName

Accessor/Mutator:
        getCustomerName()
        setCustomerName(String ...)

Java declaration of customer_name Source Generator 0.9.3.9
        _customerName

Accessor/Mutator:
        getCustomer_Name()
        setCustomer_Name(String ...)

Adopting 0.9.3.9 breaks our existing code!
Is there an option to set? 
Is this changing again in 0.9.4? 

I like that the generation is more faithful to the schema and I plan on changing
my existing code to conform. However,  if this keeps changing without being
configurable my team will push me to abandoning Castor in favor of JAXB
(http://java.sun.com/xml/jaxb/). This would be undesirable for many reasons, but
at least we'd be keeping up with the JavaSoft line...

Thanks,

Morgan

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

Reply via email to