I am creating a heavy inheritance application and have a part where classes A, B and C exist with:
class A
class B: A
class C: B
I implemented subclass matching as a style for each subclass for class B as follows:
class BMap : SubclassMap<B> { public BMap() { Extends<A>(); KeyColumn("ID"); } }
Which works great. However, when I want to implement C as follows:
class CMap : SubclassMap<C> { public CMap() { Extends<B>(); KeyColumn("ID"); } }
This results in an error.
Duplicate class/entity mapping
I looked at the Hibernate / NHibernate forum, but could not find an answer to this problem.
source share