Wiki

Articles tagged with "patterns", sorted by date (updated)X
Displaying 1-1 of 1 result(s).

Single table inheritance

Updated 3 years ago by samdarkHow-tos7 comments – viewed 24,837 times – ( +40 ) – version 1.1
Relational databases do not support inheritance so if we need to represent it, we have to somehow store meta info while keeping performance by minimizing JOINs. One way to solve this problem is using single table inheritance. All fields for the whole class tree are stored in a single table. Class name is stored in the type field of the same table.