Anemic Domain Model is the set of Domain Classes having only the Data Members, Set of Getters and Setters. These Classes are just Property Bags with little or no Business Logic inside them.
All Data Validation is done on the Form, No more Validation is required. Once Form Validation is done, No more validation is required.
Such Applications are simple CRUD applications or Form-Over Data Apps.
DDD also recognize them as the Secondary Domains.
It is perfect to have Anemic Domain Model within the OCH Arch. It is not an anti-pattern or code smell.
For Simple CRUD Domains = Domain Model is Anemic Domain Model.
OCH Architecture perfectly support the Anemeic Domain Model
No comments:
Post a Comment