Nhibernate Common columns in base class
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 o开发者_开发百科nly 1 mapping file?
You need 3 mapping files. Check out this reference:
http://docs.jboss.org/hibernate/core/3.3/reference/en/html/inheritance.html#inheritance-tableperconcrete
精彩评论