AnemicDomainModel - 0 views
-
AnemicDomainModel
- ...40 more annotations...
-
there is hardly any behavior on these objects, making them little more than bags of getters and setters
-
I was chatting with
-
should not contradict the solid approach of using layering to separate domain logic from such things as persistence and presentation responsibilities
-
One source of confusion in all this is that many OO experts do recommend putting a layer of procedural services on top of a domain model, to form a Service Layer
-
This layer is the heart of business software
-
... and has the *most value* to an organization investing in writing their own software infrastructure software (eg. user interface, orm, application server-related frameworks) or plumbing code should be treated as commodities where possible, unless, the business consciously decides that a custom, home-grown implementation is absolutely required for patenting or other differentiation reasons and/or that no existing off-the-shelf solution can be used but these cases should be rare! do not blindly fall for the not-invented-here syndrome
-
-
data background
-
J2EE's Entity Beans