encyclopegia.org

Single Table Inheritance

Single table inheritance is a way to emulate object-oriented inheritance in a relational database.[src] When mapping from a database table to an object in an object-oriented language, a field in the database identifies what class in the hierarchy the object belongs to.[src] All fields of all the classes are stored in the same table, hence the name "Single Table Inheritance".[src] In Ruby on Rails the field in the table called 'type' identifies the name of the class.[src] In Hibernate (Java) and Entity Framework this pattern is called Table-Per-Class-Hierarchy and Table-Per-Hierarchy (TPH) respectively., and the column containing the class name is called the Discriminator column.[src]

Single table inheritance is a way to emulate object-oriented inheritance in a relational database.[src] When mapping from a database table to an object in an object-oriented language, a field in the database identifies what class in the hierarchy the object belongs to.[src] All fields of all the classes are stored in the same table, hence the name "Single Table Inheritance".[src] In Ruby on Rails the field in the table called 'type' identifies the name of the class.[src] In Hibernate (Java) and Entity Framework this pattern is called Table-Per-Class-Hierarchy and Table-Per-Hierarchy (TPH) respectively., and the column containing the class name is called the Discriminator column.[src] ==See also== Object–relational mapping ActiveRecord (Rails) ==References== ==External links== Single Table Inheritance Single Table Inheritance in Yii Single Table Inheritance in Django[src]

11 sentences · 11 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Single Table Inheritance." encyclopegia.org, 2025, https://encyclopegia.org/wiki/single-table-inheritance. Accessed 30 November 2026.

Chicago

"Single Table Inheritance." encyclopegia.org. Accessed November 30, 2026. https://encyclopegia.org/wiki/single-table-inheritance.

APA

encyclopegia.org. (2025). Single Table Inheritance. Retrieved November 30, 2026, from https://encyclopegia.org/wiki/single-table-inheritance

Accessed November 30, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

periodic table

stub · references available

Inheritance

stub · references available

Hitler’s Table Talk

stub · references available

split-single

stub · references available

single whip law

stub · references available

All-time Fußball-Bundesliga table

stub · references available

2012 Summer Paralympics medal table

stub · references available

File Allocation Table

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1303149147 · 0.5 · snapshot enwiki-001303149147

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.