Hello!
I hope somebody could help me. Please have a look at the followin example classes to understand my problem.
interface IObject{
...
}
class A implements IObject{
...
List<Pointer> p;
}
class B implements IObject{
...
List<Pointer> p;
}
class Pointer {
...
IObject o;
}
What i want is an bidirectional association between the class A and Pointer and class B and Pointer.
In the class Pointer I use an IObject, because A and B should be allowed. For this I used the <any>-mapping, but
I´m not sure if an bidirectional-association with an <any>-mapping is possible...
Pointer:
...
<any name="o" meta-type="string" id-type="string"
cascade="none" >
<meta-value value="A" class="A"/>
<meta-value value="B" class="B"/>
<column name="IOBJECT_CLASS"/>
<column name="IOBJECT_ID"/>
</any>
In the classes A and B is an usual List-mapping.
Many thanks in advance!
|