I'Ive been working on Java/Hibernate/BlazeDS integrations - but am getting stuck with sending the child entities in a one-to-many relationship across BlazeDS...
For starters I have a Client and ClientLinks table in MS Sql Server
Now java-side in Client the property defining the ClientLinks entity is
private Set clientLinks = new HashSet(0);
On the AS3 side the property setter is
public function set clientProfiles(value:mx.collections.ICollectionView):void {
const oldValue:mx.collections.ICollectionView = this._clientProfiles;
if (oldValue != value) {
this._clientProfiles = value;
dispatchUpdateEvent("clientProfiles", oldValue, value);
}
}
I'm using a farrata systems plugin to generate the AS3 based on java counterparts (could be my problem) I'd like to know if there's an old school way to do this.
What happens now is when I invoke a method Java side from a flex client I recieve a strongly typed Client (great!) but the ClientLinks are represented by a mx.collections::ArrayCollection
. I'd like the ClientLinks to map to my as3 ClientLinks and access them like client.clientLinks[0].linkname
etc.. etc..
Can anyone set me straight about the best way to set this up?