- Motivation
- Parent class perform the database
mapping for a child class.
- Summary
- This is an alternative to Foreign Key Mapping pattern.
- In simple domain models parent class that host the dependent object has required logic to load data from database.
- Most of the ORM solution Foreign Key Mapping pattern to implement this and if using such pattern the this pattern is not advisable.
- When to use
- When you have simple domain model and not using any ORM frameworks.
- References
- http://martinfowler.com/eaaCatalog/dependentMapping.html
|
|