users@jaxb.java.net

Re: Serializable and Cloneable implements in a external customization file

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Fri, 12 Jan 2007 11:17:09 -0800

Serializable is supported by the spec. See the JAXB RI examples for more
details. Grep for "serializable" and you'll find it.

There's no cloneable support in the spec, but I think there's a plugin
in jaxb2-commons.

Marcos wrote:
> Hi All,
>
> I would like see all of the classes generated by the binding compiler
> implementing Serializable and Cloneable such as.:
>
> /* Before the external customization.*/
> @XmlAccessorType(XmlAccessType.FIELD)
> @XmlType(name = "", propOrder = {
> "sqlOrDefinitionIncludeOrImportDefinition"
> })
> @XmlRootElement(name = "loaderJob")
> public class LoaderJob {
>
> }
>
> /* After the desired external customization.*/
> @XmlAccessorType(XmlAccessType.FIELD)
> @XmlType(name = "", propOrder = {
> "sqlOrDefinitionIncludeOrImportDefinition"
> })
> @XmlRootElement(name = "loaderJob")
> public class LoaderJob implements Serializable, Cloneable {
>
> }
>
> How do I perform that ?
> I've read some earlier posts but I still have this doubt ...
>
> Thank you very much
> Marcos
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com