News for hackers. Stuff that matters.
Re:Ask HN: ORM or Native SQL? by themadsens on Friday January 06, 2023 @05:56PM (#34282563)
My absolute most horrid work experiences have all involved Hibernate / JPA. It slows everything to a grinding crawl, works somewhat 99.9 % of the time and creates inexplicable un-debuggable errors for the remaining 0.1%

On top of that you have to ditch referential integrity to make it at least limp along

Give me plain SQL or something lowlevel like sql2o any day

Re:Ask HN: ORM or Native SQL? by arisAlexis on Friday January 06, 2023 @06:10PM (#34282704)
Hibernate is masochitic
Re:Ask HN: ORM or Native SQL? by emerongi on Friday January 06, 2023 @06:41PM (#34283000)
How to turn a 1x developer into a 10x developer? Stop using Hibernate.

I might still have psychological trauma from it.

Re:Ask HN: ORM or Native SQL? by karmakaze on Friday January 06, 2023 @11:06PM (#34285089)
I completely agree. I pretty much stopped using Spring/Boot because of it, even though it could be used without Hibernate/JPA.

I tried sql2o and later switched to jdbi and Javalin for a lightweight framework. I started making a typesafe library[0] that maps bottom-up like SQL expressions but development as stalled as I haven't been doing much side-project work to use it.

[0] https://github.com/karmakaze/safeql