Book a Demo

Author Topic: MDA: Table per inheritance hierarchy  (Read 3394 times)

plinyar

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
MDA: Table per inheritance hierarchy
« on: February 26, 2014, 03:02:18 am »
Hello guys.
There is a need in my projects to be able to transform hierarchy of domain classes into one table by approach named "Table per inheritance hierarchy". It is a frequently used pattern in many projects around me.

In other words:
I have domain classes A and B inherited from C. During transformation to DDL, I want only one table Tc to be created and all the attributes of A and B (as well as their nullable relations to other entities D, E) to be copied into the table Tc, together with a "discriminator" column, in order to have a kind of table per inheritance hierarchy mapping (see http://nhforge.org/doc/nh/en/index.html#inheritance-tableperclass).

According to email communications with your team and a post (http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1380701712) - it is impossible now because of transformation constrains.

Hope you may help.