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

129

u/majhenslon Jun 01 '24

Hibernate/JPA and anything on to of it, if you are not doing the most basic CRUD or are really experienced with it (are not using it as a crutch for interacting with the DB), because there are so many foot guns that would just be avoided by writing raw SQL.

-7

u/Puzzleheaded_Bus7706 Jun 01 '24

This is just pure bullshit. Hibernate is super easy and super useful!

Learn how to use it,  its simple 

27

u/majhenslon Jun 01 '24

Like I said, it's fine to use it for CRUD. If you think Hibernate is easy, you either haven't used it for anything serious in production or are using it forever and know all it's quirks. If Hibernate/JPA was easy and simple, it would not need a 600 page document and Vlad Mihalcea would not have a fucking career fixing the mess people make rofl

It's another layer of complexity on top of your DB, so you have to know both really well. If you don't know both, I have seen the wackiest shit out in the wild. Also, you should know that it is not only you that maintains the codebase, but other people as well, so you either all have to learn all the quirks or you will have a mess.

→ More replies (3)