Does anyone know how NHibernate deals with abstract properties?
This is what I mean:
Data (Abstract)
--------------------
int Id
string Name
Data1 : Data
---------------
DateTime StartDate
DateTime EndDate
Data2 : Data
----------------
string SerialNumber
Then imagine I have a class that has a property of type Data, since it sometimes need to have a Data1, and other times need to have Data2. The whole principle of inheriting.
How does NHibernate deals with this case, since typing Person.Data would give an error since Data is abstract and cannot be instantiated.
Thanks in advance,
Bernardo Heynemann
|