Can we see the server API for these types too?
 
When you say a Child's parent property is empty, are you saying it is null on the server? What are you using to determine that?
 
 
 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Valy Sivec
Sent: Tuesday, January 03, 2006 2:11 PM
To: [email protected]
Subject: [flexcoders] Flex 1.5: AS2 serialization issue . Parent/Child data model implementation

Hi Flexcoders,

I have a  master/detail data entry form and I have some difficulties transfering the data objects from AS2 to the server side. The data persitence is implemented with Hibernate and I have a one to many relations between a Parent object and his  Child(s) objects.

Here is the AS2 implementation of the data model:


class Parent
{
  public static var regClass =    Object.registerClass("Parent", Parent);

  public var property : String;
  public var childs : Array = new Array();

  public function Parent() {}
}

class Child
{
  public static var regClass =    Object.registerClass("Child", Child);

  public var property : String;
  public var parent : Parent;

  public function Child() {}
}


Here is my problem: It looks that when I transfer the Child object from AS2! to Java via Remote Object call, the "parent" property is empty ( Parent's properties are initialized to the default values ) on the server side no matter what value I have on the AS2 side.  Is there any issue with the serialization from AS2 to JAVA in this case?.

I transfer the Parent object from AS2 to JAVA and everything is OK.

Thank you,
Valy





Yahoo! Shopping
Find Great Deals on Holiday Gifts at Yahoo! Shopping

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to