All,
I hope this isnt a particularly stupid question. I have used Hibernate (java) a bit, but Im new to .NET and NHibernate.
We have a requirement to map the same class with different names.
In Hibernate 3 this could be done with somethig like:
Code:
<class entity-name="Cromags" name="Person" table="CROMAGS">
<id name="id" column="id">
<generator class="native"/>
</id>
<property name="age"/>
<property name="name"/>
</class>
<class entity-name="Neanderthal" name="Person" table="NEANDERTHALS">
<id name="id" column="id">
<generator class="native"/>
</id>
<property name="age"/>
<property name="name"/>
</class>
Is there anyway of doing this in the current version of NHibernate? Any help welcome
Cheers
Dunder