3 ms·
Just use a mature ORM where you can easily combine ORM capabilities and raw SQL, like Hibernate / Spring Data. There you can do raw-raw calls to the SQL driver,
by Traubenfuchs 6y ago
Just use a mature ORM where you can easily combine ORM capabilities and raw SQL, like Hibernate / Spring Data. There you can do raw-raw calls to the SQL driver, map your optimized by hand query to an object or let Hibernate fetch a whole graph of stuff by itself.
Use the right tool for the job.
- nickik 6y agoHaving worked with Hibernate, droping it and using JOOQ has made my life 10x better.