I have a Parent/Child object/mapping as follows:
class Parent { int Id; string name; List children; }
<bag name="Children" cascade="all" lazy="false ">
<key column="ParentId" />
<one-to-many class="Child" />
</bag>
class Child { int Id; Parent Parent; string Name; }
<many-to-one name="Parent" column="ParentId" />
Ok, I don't want to use the property "Parent Parent" in Child; i want to use "int ParentId". How would I go about mapping that?
Any help is greatly appreciated!