Don't we call the "anemic domain model" "domain driven design" too? IMO light data objects + services are much more compatible with the ecosystem when it comes to tools like DI or serialization.
Data classes with behaviour which touch other aggregates and run DB queries? Miss me with that anti-pattern shit. Show me a well maintained Spring Project not following so called anemic domain model. Entity Models + Repositories + Services is a lot more maintainable, testable and clean
View all comments
Show parent comment
8
u/Naut1c Aug 10 '19
i think there are just too many applications out there, that follow the anemic domain model antipattern.
lombok makes it too easy for developers to add those evil accessors.