Another way for getting what you ask for :-)

Extracted from the Hibernate documentation:
"Apart from <set>, there is also <list>, <map>, <bag>, <array> and <primitive-array> mapping elements"

It seems that hibernate can handle arrays as well as sets for persistent collections. Perhaps you could give them a try :-)

Regards,
Rodrigo Ruiz

Giggle Giggle wrote:
So, when I want to avoid custom serializers what is the best solution (Java 
client)?
I have to have collections as attributes in my classes (arrays don't fit my 
needs).
Are wrappers (around every class containing a collection) the good way or is there any better solution?
(maybe the answer is hidden in "class clasting in your code" but I don't 
understand what it means)

Thank you
Lucas

------------ Původní zpráva ------------
Od: Anne Thomas Manes <[EMAIL PROTECTED]>
Předmět: Re: Sending a Collection of objects (advanced :-))
Datum: 14.2.2006 14:16:40
----------------------------------------
You should convert all collections to arrays -- especially if your goal is
interoperability with non-Java applications. As an alternative to doing the
class clasting in your code, you could write your own schema for the
information and custom serializers.

Anne



Reply via email to