r/ProgrammerHumor • • Jul 18 '20

I also need help

/img/26u0ffsdfob51.png
8.5k Upvotes

224 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Jul 19 '20

[deleted] — view deleted comment

1

u/[deleted] Jul 19 '20

The downside of pulling all business logic out into the service layer: https://en.m.wikipedia.org/wiki/Anemic_domain_model Now I don't actually agree it's an anti pattern, but I'm just saying I can see certain advantages of giving the repository more responsibility. Obviously I'm talking in the general case and Spring may or may not force certain design decisions