Hi,
We are planning to use NHibernate in our persistence layer for the next version of our application. We have created a prototype to persiste our existing model to a RDBMS and we found a problem. Our model has some interfaces that we need to map to existing tables and we could not find how to do it with NHibernate.
We found that the interface mapping can be done in Hibernate (java) using an Interceptor and returning the interface name in the "getEntityName" method (see:
http://www.hibernate.org/339.html) when trying to persist or load a concrete interface implementation.
As we look further we found that NHibernate does not support (as of 1.0.2) "Entity Name" in the class definition nor it has such a method in the Interceptor definition.
Is there any plan to support these features?
How difficult is to implement?
Is there any other solution?
Thanks,
Rogelio J. Baucells