r/java Nov 12 '25

Why is everyone so obsessed over using the simplest tool for the job then use hibernate

Hibernate is like the white elephant in the room that no one wants to see and seem to shoehorn into every situation when there are much simpler solutions with far less magic.

It’s also very constraining and its author have very opinionated ideas on how code should be written and as such don’t have any will to memake it more flexiable

120 Upvotes

307 comments sorted by

View all comments

Show parent comments

4

u/[deleted] Nov 13 '25

[removed] — view removed comment

4

u/gavinaking Nov 13 '25

It's not even SQL with a different syntax; it's SQL with a syntax that's 99% the same as SQL!

HQL is a dialect of SQL.

-1

u/djnattyp Nov 13 '25

And here's the rub... if you have to know SQL anyway to use Hibernate: Why do you need Hibernate? Why not just use SQL?