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