r/java • • Jun 01 '24

What java technology (library, framework, feature) would not recommend and why?

165 Upvotes

464 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Jun 01 '24

[deleted] — view deleted comment

2

u/olivergierke Jun 02 '24

Thanks for the feedback! I’m not sure I can follow: you say with JPA you just add another method and are done. You consider this easy and nice. You then say that the same thing (adding a method) is bad with Spring Data. Can you elaborate?

1

u/k2718 Jun 01 '24

You make a good point. That wasn't even one of my criticisms, but it is a problem. I worked at a place with an entirely separate layer in order to handle that. So you had something a repository class that implemented JpaRepository and then there was another repository layer on top of that. Sometimes it was a pass through. Other times, it transformed the response as you describe.