I'm not using FlexDAO. I'll send it to your mail. I won't post it because
the code is messy. But you can use it, it's working for me.
On 3/24/08, sk_acura [EMAIL PROTECTED] wrote:
Hi Jhonny,
Are you using the DAOFlex ??
If not could u pls post the code here..
Thanks
Mars
--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
JhonnyEverson [EMAIL PROTECTED] wrote:
Just correcting myself. I DON'T think we can bind internal classes in
actionscript.
On Feb 4, 2008 5:36 PM, Jhonny Everson [EMAIL PROTECTED] wrote:
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
--
Jhonny Everson
--
Jhonny Everson