Wiki

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

Single table inheritance

Created 3 years ago by samdarkHow-tos6 comments – viewed 22,585 times – ( +38 ) – 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.