users@jaxb.java.net

Re: Making generated classes serializable

From: Felipe Gaúcho <fgaucho_at_gmail.com>
Date: Fri, 12 Jun 2009 09:15:41 +0200

        <xsd:annotation>
                <xsd:documentation>
                        The Business Meta-data of CEJUG-Classifieds.
                </xsd:documentation>
                <xsd:appinfo>
                        <jaxb:globalBindings>
                                <xjc:serializable uid="-6026937020915831338" />
                <jaxb:javaType name="java.util.Calendar"
                        xmlType="xsd:dateTime"
parseMethod="javax.xml.bind.DatatypeConverter.parseDate"
                        printMethod="javax.xml.bind.DatatypeConverter.printDate" />
                        </jaxb:globalBindings>
                </xsd:appinfo>
        </xsd:annotation>


here a complete wsdl example:

https://cejug-classifieds.dev.java.net/source/browse/cejug-classifieds/trunk/cejug-classifieds-core/src/main/resources/META-INF/wsdl/business.xsd?rev=1267&view=markup

and zes, the serial version should be the same for all types, actually
that is the functiona of a serial version :)