Hi all,

I have an hibernate mapping defined with some properties and a relationship:

<set name="items" table="..." lazy="false">
 <key column="..."/>
 <one-to-many class="..."/>
</set>

This relationship is defined in the java bean as:

private Collection items;

On the Flex side, I'm receiving this relationship as an ArrayCollection. 
The serialization from java.util.Collection to Flex ArrayCollection 
works fine but, when I try to save the changes made on the client side ( 
what, on the server side, gets translated into 
getHibernateTemplate().update ( .. ) ), it just fails throwing this error:

java.lang.ClassCastException : flex.messaging.io.ArrayCollection cannot 
be cast to java.util.Set

Im stuck and I dont know what to do. Any ideas?

Thank you!

Alberto

Reply via email to