News for hackers. Stuff that matters.
Re:Embracing SQL in Postgres by borplk on Thursday February 26, 2015 @08:19AM (#9112308)
In the Java world checkout MyBatis it lets you write "named" SQL queries in a config file and makes it available to you in Java as a type-safe interface. Been using it recently and love it.
Re:Embracing SQL in Postgres by reitanqild on Thursday February 26, 2015 @08:28AM (#9112336)
Months since last I used JPA but I'm well beyond 90% sure I did this in JPA as well.
Re:Embracing SQL in Postgres by virmundi on Thursday February 26, 2015 @10:50AM (#9113108)
You can. It's just not mundane JPA. Hibernate had the same feature before JPA borrowed it. I was the only person that new Hibernate well enough to do that. JPA targets normal CRUD->POJO apps for it's common case. Under most circumstances you don't need raw SQL for that.