Hi everyone,
I'm trying to map the following relations:
Code:
A
\
B - INDEX - E
/
C
INDEX
---------------------
TYPE
ID
IdE
That you can translate by:
A has a subset of E
B has a subset of E
C has a subset of E
the index allows to map an entity E with any entity A, B or C identified by ID (A, B & C have the same kind of Identifier) and thanks to the TYPE column (A, B or C)
I believe I should use the something like that for the INDEX
Code:
<class name="INDEX">
<any name="INDEX" id-type="String" meta-type="class">
<column name="IdE"/>
<column name="ID"/>
</any>
</class>
but I've read
Quote:
...and should also be used rarely, if ever.
in the doc, so I wonder if it's really safe to use it?
Now I don't need a collection of <any> type, I need 3 collections of E entity, one for A, for B, for C... I'm wondering how to implement a <map> of E entity for each of these object.
I watched carrefully the forum but exmaples on this are rather slim (or difficult to find out)
Thanks in advance for any hints.