News for hackers. Stuff that matters.
Re:Problems with JPA/Hibernate by oweiler on Monday April 12, 2021 @01:56AM (#26776400)
Both JOOQ and JDBI are superior to JPA in my book.
Re:Problems with JPA/Hibernate by cies on Monday April 12, 2021 @04:52AM (#26777237)
jOOQ is the most obvious contender. Since I use Java I like type safety, jOOQ gives me that (like Hibernate) without trying to abstract the fact that I make queries to a db (which Hibernate does).
Re:Problems with JPA/Hibernate by ChrisWreck on Monday April 12, 2021 @05:16AM (#26777371)
jOOQ and JPA doesn't solve the same problem.
Re:Problems with JPA/Hibernate by lazystone on Monday April 12, 2021 @05:20AM (#26777399)
That's why JOOQ is superior.
Re:Problems with JPA/Hibernate by ChrisWreck on Monday April 12, 2021 @05:47AM (#26777599)
It depends on what you want to do.

Complex queries with multiple joins? jOOQ.

Persist changes to complex aggregate models with multiple layers of child entities? JPA/Hibernate.

Re:Problems with JPA/Hibernate by lazystone on Monday April 12, 2021 @07:13AM (#26778096)
> Doctor, it hurts when I do this. Then don't do that