Inheritance
Figure 931. Introducing inheritance mapping
Mapping inheritance hierarchies to relational databases means bridging the gap between object oriented and relational models. We start with a slightly modified example from [Bauer2015]:
Figure 932. Modelling payment.
Since the relational model lacks inheritance completely we have to implement a database schema ourselves. We subsequently explore three main approaches each of which having its own advantages and disadvantages.