Ok I will try to describe my problem more in detail:
I have a class "object", which has two attributes:
Code:
public class object
{
private Attribut attrib1;
private Attribut attrib2;
...
}
A "normal" component-mapping would look like this:
Code:
<class name="object" table="object">
...
<component name="attrib1" class="Attribut">
<property name="xyz"/>
...
</component>
My problem is, that this attributes are polymorph "complex" classes, which should have a seperate table in the database! They havenĀ“t not properties like normal string etc.
I would like to link the component by a key of the attribute-table, if this is possible!
Are many-to-ones relations only useful for lists,sets,etc. ?!
Problem 2:
Is it possible to map recursive class-structures? Maybe a class object, which itself has a component object?
Greetings