Chapter 4. Remoting and Serialization - 0 views
-
4.3. Mapping Java and AS3 objects
- ...21 more annotations...
-
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
-
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
-
<include annotated-with="javax.persistence.Entity"/> <include annotated-with="javax.persistence.MappedSuperclass"/> <include annotated-with="javax.persistence.Embeddable"/>
-
found in the classloader of the GraniteConfig class, and discover all externalizers (classes that implements the GDS Externalizer interface)