Hello,
I am trying to import hbm.xml file into the Devart Nhibernate Model (via visual studio).
The file contains the following definitions:
<class name="Party"
abstract="true"
table="Parties">
<id name="Id">
<generator class="identity"/>
</id>
<joined-subclass
table="People"
name="Person">
<key column="PartyId"/>
<property name="FirstName"/>
</joined-subclass>
<joined-subclass
table="Companies"
name="Company">
<key column="PartyId"/>
<property name="CompanyName"/>
</joined-subclass>
</class>
When the process ends, i get the following error:
Abstract class 'Party' cannot participate in a Table Per Type inheritance.
What is the problem with my file? It is a valid Nhibernate definition..
nhibernate - table per type inheritance error
Re: nhibernate - table per type inheritance error
We will investigate this behaviour and inform you about the results as soon as possible.
As a workaround, please set Abstract property to False for the entity class Party (select Properties from its shortcut menu).
As a workaround, please set Abstract property to False for the entity class Party (select Properties from its shortcut menu).
Re: nhibernate - table per type inheritance error
Hello MariiaI,
The code i posted here was just a little example, i am actually trying to import a very big project to Entity Developer and can't really change the base classes to be non abstract.
I am looking forward for the results of your investigation..
Thanks a lot
The code i posted here was just a little example, i am actually trying to import a very big project to Entity Developer and can't really change the base classes to be non abstract.
I am looking forward for the results of your investigation..
Thanks a lot
Re: nhibernate - table per type inheritance error
We have made changes, which should fix the error with TPT inheritance. The changes will be available in the next build of Entity Developer. We will inform you when it is available for download.
Re: nhibernate - table per type inheritance error
New build of Entity Developer 5.7.436 is available for download!
It can be downloaded from http://www.devart.com/entitydeveloper/download.html (trial version) or from Registered Users' Area (for users with active subscription only).
For more information, please refer to http://forums.devart.com/viewtopic.php?f=32&t=30319.
It can be downloaded from http://www.devart.com/entitydeveloper/download.html (trial version) or from Registered Users' Area (for users with active subscription only).
For more information, please refer to http://forums.devart.com/viewtopic.php?f=32&t=30319.
Re: nhibernate - table per type inheritance error
Thats great, thanks