Wiki

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

Single table inheritance

Updated 2 years ago by samdarkHow-tos6 comments – viewed 20,692 times – ( +37 ) – 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.