I have two tables that are related via a mapping table. The mapping table actually holds the ParentKey & ChildKey. I mapped them without having to have a class for the Mapping table as said in
http://codebetter.com/blogs/peter.van.ooijen/archive/2008/05/29/nhibernate-many-to-many-collections-or-mapping-is-not-one-table-one-class.aspxIn my case many objects relate to one child table.
Table1 ---->
Table2 ----> MappingTable ----> ChildTable
Table3 ---->
My mapping table contains "ParentKey" (table1_PK or table2_PK or table3_PK) and childKey (ChildTable_PK).
Now I have to add a "parenttype" column to the mapping table. How can i possibly do that?
Any help is appreciated.