Wiki

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

Single table inheritance

Created 3 years ago by samdarkHow-tos8 comments – viewed 24,959 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.