Jump to content

Single Table Inheritance

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Bobcompu (talk | contribs) at 11:21, 25 February 2008 (Created page with 'Single table inheritance is a way to emulate object-oriented inheritance in a Relational_database. When mapping from a database table to an object in an object...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Single table inheritance is a way to emulate object-oriented inheritance in a Relational_database. When mapping from a database table to an object in an object-oriented language, a field in the database identifies what class in the hierachy the object belongs to[1]. In Ruby on Rails the field in the table called 'type' identifies the name of the class.

See also Object-relational mapping

  1. ^ Martin Fowler Patterns of Enterprise Application Architecture, 2003