Bumping the question, since I still have not resolved the issue.

If there really is no other way I will try and revert back to an Object (or
Dictionary) to store the data, and use the HashCollection simply as a
wrapper around it.

Thanks,
-- 
Sébastien

2010/1/10 Sébastien Tromp <[email protected]>

> (sorry, mislicked on the send button).
>
> What I want to do is to map all instances of java.util.Map coming from my
> server (as well as its Hibernate counterpart, the
> org.hibernate.collection.PersistentMap) to this HashCollection.
>
> To experiment in doing so, I am trying to add custom serialization to the
> HashCollection:
>
>     [RemoteClass(alias="org.hibernate.collection.PersistentMap")]
>     public class HashCollection extends ArrayCollection implements IMap,
> IExternalizable
>     {
>
>         public function HashCollection(source:Array = null)
>         {
>             super(source);
>         }
>
>         ...
>
>         public override function readExternal(input:IDataInput):void
>         {
>             trace("read external");
>             var test:Object = input.readObject();
>             var otherTest:Object = input.readUTF();
>         }
>
>         public override function writeExternal(output:IDataOutput):void
>         {
>             trace("write external");
>             super.writeExternal(output);
>             trace("test");
>         }
>     }
>
> However I never go in the overridden readExternal and writeExternal - I
> always end up in the ArrayCollection methods.
>
> Does anyone has a clue either on my general issue (map PersistentMap and
> Map to my HashCollection class), or on why the overridden read- and
> writeExternal are never called?
>
> Regards,
> --
> Sebastien
>
> 2010/1/10 Sébastien Tromp <[email protected]>
>
> Hello,
>>
>> I am currently working with a Java server implementation, talking to a
>> Flex client using BlazeDS.
>> On my client side, I have implemented a custom HashCollection (
>> http://code.google.com/p/agricola-online/source/browse/trunk/agricola-online-flex/src/main/flex/org/liveboardgames/common/dictionary/collections/HashCollection.as).
>> Wh
>>
>
>

Reply via email to