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.

2

u/manifoldjava Jun 01 '24

Use manifold-sql to write type-safe native SQL and to avoid JPA / ORM / DSL nonsense.

1

u/majhenslon Jun 01 '24

At the first glance, I don't like it, because it lacks a query builder. I might be completely wrong and not get it, but I always need a query builder and find it really useful to have completions for tables/columns.

Also, how does "Entity types are automatically derived from your database" and "No code generation build steps" go together?

Also, how does it work, do you extend the String type?

→ More replies (2)