Hello,
I didn't find anything about it in the forum nor in the docs: is it possible to persist a 2d-array like
[quote]Cat[][] catArray;[/quote]?
I know it works with
[quote]<property name="catArray" type="serializable">[/quote]
This requires Cat being serializable. Is there any other way?
Or is there a way to persist it like an array with
[quote]
<array name="catArray">
<key column="holder"/>
<index column="position"/>
<many-to-many class="Cat"/>
</array>
[/quote]?
If the index (position-column) would hold tuples like (1, 1) (1, 2) instead of simple integers, this could work, couldn't it?
Thanks,
Alice
|