I am using Remote Object, my Java VO implements
java.io.Serializable. I am also using hibernate 3.
Here is my code.
Actionscript VO
===========
package com.imagemaker.olimpo.contacto.vo {
import com.adobe.cairngorm.vo.ValueObject;
import mx.collections.ArrayCollection;
[Bindable]
[RemoteClass(alias="com.imagemaker.olimpo.beans.Empresa")]
public class EmpresaVO implements ValueObject {
public var id:int;
public var nombre:String;
public var direccion:String;
public var rut:String;
public var contactos:ArrayCollection;
}
}
Java VO
=======
package com.imagemaker.olimpo.beans;
/**
* AbstractEmpresa generated by MyEclipse - Hibernate Tools
*/
public abstract class AbstractEmpresa implements
java.io.Serializable {
private Integer id;
private String nombre;
private String direccion;
private String rut;
// Constructors
/** default constructor */
public AbstractEmpresa() {
}
/** minimal constructor */
public AbstractEmpresa(String nombre) {
this.nombre = nombre;
}
/** full constructor */
public AbstractEmpresa(String nombre, String direccion,
String rut) {
this.nombre = nombre;
this.direccion = direccion;
this.rut = rut;
}
// Property accessors
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public String getNombre() {
return this.nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
public String getDireccion() {
return this.direccion;
}
public void setDireccion(String direccion) {
this.direccion = direccion;
}
public String getRut() {
return this.rut;
}
public void setRut(String rut) {
this.rut = rut;
}
}
package com.imagemaker.olimpo.beans;
// Generated by MyEclipse - Hibernate Tools
import java.util.Set;
/**
* Empresa generated by MyEclipse - Hibernate Tools
*/
public class Empresa extends AbstractEmpresa implements
java.io.Serializable {
// Constructors
/**
*
*/
private static final long serialVersionUID =
-5039282446108510122L;
/** default constructor */
public Empresa() {
}
/** minimal constructor */
public Empresa(String nombre) {
super(nombre);
}
/** full constructor */
public Empresa(String nombre, String direccion, String rut)
{
super(nombre, direccion, rut);
}
}
My service returns a List of Empresa and in Actionscript not
all of my objects in the collection are transformed into EmpresaVO
Please HELP!!!
Thanks,
Lee Oneal