csenkal wrote:
As I have mentioned in my first post, if join type mapping then, this means that I divide One class into 2 or more tables.
What I wanted to do is to have 2 classes and 2 tables.
Not 1 class and 2 tables(JOIN)
OR
2 classes and 1 table(Component mapping)
1-1 mapping is the closest to what I want, but it assumes the component is an entity(for my case),
I can not understand why I just can not write something like
<component name="child" class="MyChild" table="MyChildTable">
<property name="xxx" type="string">
</property>
....
</component>
Code:
<join [b]table="MyChildTable"[/b]>
<key ... />
<component name="child" class="MyChild">
<property name="xxx" type="string">
</property>
...
</component>
</join>