4 ms·
Write SQL and do the mappings to records yourself.
by ithrow 4y ago
Write SQL and do the mappings to records yourself.
- cogman10 4y agoI've never understood why this isn't a more common approach. JDBC is an old standard, but it's also perfectly functional. The addition of try-with-resources has made it fairly terse once you know your way around it. And half the time with an ORM, you are trying to figure out what SQL is ultimately being generated and tweaking to get what you want. So, cut that middle layer out and just write what you want.
- krzyk 4y agoYes, tried that once and every other developer in my team complained. I would stick with JDBC if I were the only developer.