Inheritance in O/R Mapping

Inheritance in O/R Mapping

Vertical inheritance mapping
each class in the inheritance hierarchy maps to its own table in the database and all the tables in the database have a one-to-one relationship with each other
Single-table inheritance mapping
all classes in the inheritance hierarchy map to the same single table in the database and this table contains columns for all the classes. It also contains a type column to indicate the type for each row.