Hi,
I have an entity that I want to reuse across projects. The entity needs to know its parent which is generally mapped with something like this:
<many-to-one name="Parent" class="ParentClass, parent.assembly" column="parentuid" not-found="exception" not-null="true" lazy="proxy" cascade="none"/>
The same entity can be used by many parents which is the problem and it might not recognise the type as the parent entity type will more than likely be in an assembly that references this reusable entity. This is why I cannot use the <any/>
relationship.
I can hack a solution together but I would prefer to use Nhibernate but I cannot find an adequate extension point.
Is anybody aware of any extension points or any NHibernate trickery that I can use to solve this satisfactorily.
Cheers
Paul