Questions tagged [anemic-domain-model]

A domain model is "anemic" if it has little or no behavior. A model that only contains things, parties and places with no activities, is considered anemic. For example, a model that has only a 'Car' and a 'Car Dealership' is anemic because there is no activity (behavior) in the model that joins the two. For example, a 'CarSale' or 'CarService' activity represents behavior that joins the two and makes the model useful. Contrast with an "anemic object".

Having a domain layer that is only getters and setters for data values to/from the database is not a good OO design. Read more here

66 questions
0
votes
1 answer

Role of services in domain driven design

I have recently found that domain driven design (DDD) is the better option for some applications (i.e., applications in which complex business logic is involved rather than simple CRUD operations exposed through UI). I have gone through the below…
Vasu
  • 21,832
  • 11
  • 51
  • 67
0
votes
1 answer

Design pattern for web service fronting a datastore

Im writing a web-service that has couple of APIs to get data from a data store. The high level view would look like this getBlahForDate() ----> ----> Client Service Data store ( Stores Blah ) …
0
votes
1 answer

Is Anemic Domain Model a bundle of smart services and stupid object without a defined behavior?

I am a bit confused about what is a anemic domain model in OOP. Is a sort of bundle of Plain Old X Object (where X stands for the language you prefer), without behaviors (and responsibilities). class AnemicDomainClass { private $property; …
sensorario
  • 20,262
  • 30
  • 97
  • 159
0
votes
1 answer

POCO can be used as domain model

We are planning to developing a software following Domain Driven Design inspiring by the Red (EE) and Blue (VV) ddd books. The business is not that complicated. It is possible to avoid inheritances for all concrete classes. The goal is to feel the…
0
votes
1 answer

Domain Driven Development using existing (3rd party) data model (Java)

First I'd like to say that my standard approach to developing software is probably typical to a lot of developers... I have Services which are rich in behavior but have no state and I have Objects (Beans) which have only state and no behavior (I…
raven-king
  • 1,550
  • 2
  • 18
  • 40
0
votes
2 answers

DTO to POCO with Lucene

We are using Lucene as the search server for data retrieval. With this come certain complexities that I was unprepared for, not the least of which is managing relationships between objects. I want to create a clean and simple POCO for our domain…
Yevgen Fesenko
  • 177
  • 1
  • 7
1 2 3 4
5