I have multiple one-to-many relationships to the same class from a class. Is there a way to Map it?
<class name="A" table="A">
...
<set name="x">
<key column="a"/>
<one-to-many class="B"/>
</set>
<set name="y">
<key column="a"/>
<one-to-many class="B"/>
</set>
<set name="z">
<key column="a"/>
<one-to-many class="B"/>
</set>
</class>
--------------------------------------------
class B {
public
String value;
}
--------------------------------------------
I just use B to save a list of options for different attributes of A. Can I map using one generic class B or do I need to have a different class for each attribute in A (Bx, By, Bz). Is there a better way to address the whole issue?
Thanks in advance
Ram
[ March 14, 2006: Message edited by: Ram Raju ]