Off-topic below:
Manolo Gómez P. wrote:
> Yes, it is as Victor says, Hibernate uses it's own implementation
> around collection classes because it needs to control changes in
> containing objects.
>
too much magick.
> I can quite remember, but I think this collections are enhanced using
> either reflection or bytecode enhancing (cglib2).
>
> OK, maybe just cloning the collection would do, but if your list has
> an internal set, then that set may be a Hibernate enhanced collection
> too, in which case you probably need to clone it too.
>
Depending on the clone type (deep/shallow) that could be quite a performance
hit, not to mention that the whole idea of copying data from a collection that's
nice and merry for your code into another that mirrors it for data transfer is
such a very wrong and wasteful thing to do.
You may be better off using iBATIS if you're in the first stages of development,
as it's very neat and does not f#*@ with you in such devious ways.
> Just a thought.
>
Yeah, mine too, I guess it worth 2c only to myself :)
Good luck,
-- Radu-Adrian Popescu CSA, DBA, Developer Aldrapay MD Aldratech Ltd. +40213212243
This archive was generated by hypermail 2.1.8 : Thu Sep 28 2006 - 20:16:40 PDT