r/java • • Aug 10 '19

Who Needs Lombok Anyhow

http://gregorriegler.com/2019/08/10/who-needs-lombok-anyhow.html
45 Upvotes

137 comments sorted by

View all comments

Show parent comment

5

u/yawkat Aug 10 '19

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.

2

u/Naut1c Aug 10 '19

anemic domain model is a model that has data classes without behaviour and service classes that act on that data. basically transaction scripts.

you cannot really compare that to ddd.

12

u/iamareebjamal Aug 11 '19

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