--- url: "https://martinfowler.com/eaaCatalog/inheritanceMappers.html" titulek: "Inheritance Mappers" h1: "Inheritance Mappers" popis: "A structure to organize database mappers that handle inheritance hierarchies." jazyk: "" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-13 21:08:46" znaku: 1004 slov: 131 kodovani: "utf-8" sha256: "8a822814f9183d4f0cb534fab4161a11e6d1b4475db9bcad52ba8735ae9bd1d0" --- # Inheritance Mappers A structure to organize database mappers that handle inheritance hierarchies. When you map from an object-oriented inheritance hierarchy in memory to a relational database you have to minimize the amount of code needed to save and load the data to the database. You also want to provide both abstract and concrete mapping behavior that allows you to save or load a superclass or a subclass. Although the details of this behavior vary with your inheritance mapping scheme ([Single Table Inheritance](singleTableInheritance.html), [Class Table Inheritance](classTableInheritance.html), and [Concrete Table Inheritance](concreteTableInheritance.html)) the general structure works the same for all of them. for more details go to [Chapter 12](https://learning.oreilly.com/library/view/patterns-of-enterprise/0321127420/ch12.html#ch12lev1sec10) of the online ebook at oreilly.com This pattern is part of [Patterns of Enterprise Application Architecture](.) [Martin Fowler](/) 05 March 2003