Hi,
I'm using JAXB to generate POJOs too, it's working fine. I have even written
an Air application to automatically generate actionscript code from Java
generated code. You must have a look at jaxb annotations to solve the
problem of custom code.
Some tips:
Use the following annotation on root of your schema to make the xjc to
generate ArrayList instead of vectors, and (optionally) define a java
package.
<xs:annotation>
<xs:appinfo>
<jxb:serializable/>
<jxb:globalBindings collectionType="java.util.ArrayList">
</jxb:globalBindings>
<jxb:schemaBindings>
<jxb:package name="br.al.gov.bou.modelo"/>
</jxb:schemaBindings>
</xs:appinfo>
</xs:annotation>
As i'm using Red5, the data binding requires all pojos to have all gets and
sets, so if it's your case use "JAXB 2.1 Collection setter Injector Plugin"
(https://jaxb2-commons.dev.java.net/collection-setter-injector/) because xjc
only generate getter methods on collections.
Another important thing is the use of complexType in EVERYTHING, to avoid
java internal classes generation. I think we can bind internal classes in
actionscript.
Hope i've helped. If you are interested in the application to generate
actionscript from java code say so that i'll send to you.
--
Jhonny Everson