Due to the limited capabilities of the ActionScript 3 reflection API than cannot access private fields, it is necessary to create
an externalizable AS3 class (implementing flash.utils.IExternalizable and its corresponding externalizable Java class
writeExternal
In both classes you have to implement two methods
the Gas3 generator can automatically generate the writeExternal and readExternal methods.
With GraniteDS automated externalization and without any modification made to our bean, we may serialize all properties of the Person class,
private or not
In order to externalize the Person.java entity bean, we must tell GraniteDS which classes we want to externalize
with a
externalize all classes named com.myapp.entity.Person by using the org.granite.hibernate.HibernateExternalizer
you could use this declaration, but note that type in the example above
is replaced by