anti-patterns:anemic_domain_model
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | anti-patterns:anemic_domain_model [2017-05-29 11:12] (current) – created christian | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Anemic Domain Model ====== | ||
+ | ===== Alternative Names ===== | ||
+ | |||
+ | ===== Context ===== | ||
+ | |||
+ | * [[contexts: | ||
+ | |||
+ | |||
+ | ===== Problem Statement ===== | ||
+ | A [[patterns: | ||
+ | |||
+ | ===== Description ===== | ||
+ | In a [[patterns: | ||
+ | |||
+ | ===== Causes ===== | ||
+ | /*how the anti-pattern occurs*/ | ||
+ | Some frameworks like the old J2EE entity beans encourage having anemic model classes which just have getters and setters. Furthermore [[principles: | ||
+ | |||
+ | ===== Origin ===== | ||
+ | /*original source of the anti-pattern description*/ | ||
+ | {{page> | ||
+ | |||
+ | ===== Disadvantages ===== | ||
+ | /* reference principle here */ | ||
+ | * [[principles: | ||
+ | * [[principles: | ||
+ | |||
+ | ===== Advantages ===== | ||
+ | /* reference principle here */ | ||
+ | * [[principles: | ||
+ | |||
+ | |||
+ | ===== Refactorings ===== | ||
+ | * [[refactorings: | ||
+ | |||
+ | ===== Anti-Pattern Collections ===== | ||
+ | |||
+ | |||
+ | ===== Examples ===== | ||
+ | |||
+ | ==== Example 1: ==== | ||
+ | |||
+ | |||
+ | |||
+ | ===== Description Status ===== | ||
+ | /* Choose one of the following and comment out the rest: */ | ||
+ | / | ||
+ | [[wiki: | ||
+ | / | ||
+ | |||
+ | |||
+ | ===== Further Reading ===== | ||
+ | |||
+ | |||
+ | ===== Discussion ===== | ||
+ | |||
+ | Discuss this wiki article and the anti-pattern on the corresponding [[talk: |
anti-patterns/anemic_domain_model.txt · Last modified: 2017-05-29 11:12 by christian