Nhibernate Common columns in base class

Posted by sukh on Stack Overflow See other posts from Stack Overflow or by sukh
Published on 2010-02-06T02:40:32Z Indexed on 2010/03/14 10:05 UTC
Read the original article Hit count: 179

Filed under:
|

I want to design following scenario

Base class (Id, Name, order, Value)

3 Derived classes derive1, derive2, derive3 inheriting properties from base

There is no table for base class. And 1 table for each derived class. 3 tables have same columns.

How can I create mapping file ignoring base class? Do I need to create 1 mapping file for each derived class? can I achieve this using only 1 mapping file?

© Stack Overflow or respective owner

Related posts about nhibernate

Related posts about inheritance