d.Dependent Mapping

  1. Motivation
    1. Parent class perform the database mapping for a child class. 
  2. Summary 
    1. This is an alternative to Foreign Key Mapping pattern. 
    2. In simple domain models parent class that host the dependent object has required logic to load data from database.
    3. Most of the ORM solution Foreign Key Mapping pattern to implement this and if using such pattern the this pattern is not advisable. 

  3. When to use 
    1. When you have simple domain model and not using any ORM frameworks.
  4. References 
    1. http://martinfowler.com/eaaCatalog/dependentMapping.html