ahoque.org

View on GitHub

How to map class inheritance to relational tables

Single table inheritance

Map all the fields in the graph to a single table.

alt text

Class table inheritance

For each class create a table and map the fields.

alt text

Concrete table inheritance

For each concrete class, map all the fields plus the inherited fields into the table.

alt text

References