gavin wrote:
In HB3 there is a collection-type attribute of <set>, etc.
In HB2.1 you will need to do some fancy manipulation of the cfg metamodel.
I really don't know why you are trying to do this in 2.1.
Ok, that's perfect for me: I just need informations :-)
The application is already 2.1 and I'm preparing for porting to 3.0 by refactoring: I want to do every possible refactoring step in 2.1 because 3.0 is not in stable release status and not officially supported in spring (i'm using an home-made port of the spring-hibernate-support).
Thank you for your help! google's says that this "custom" collection handling is not so common and it is not easy to find samples and/or documentation!
By now I've created a LazyFilterableSetWrapper that take as an argument an hibernate Set and proxy my request and added a further method to my Business object so that the LazyFilterSet getCollection() will create a LazyFilterableSetWrapper(getStandardCollection()) and getStandardCollection is mapped by hibernate!
I'll take next steps for post 3.0 release!