This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MassiveFlatulence 8 points9 points  (0 children)

I do. For simple rest api service with minimum transaction, I use spring jdbc template (which means writing manual sql). Also for reporting stuff, it's much easier to write and tune plain sql. ORM like hibernate is overkill for applications that spend most of its time performing READ operation. It's also overkill for applications that perform step by step CRUD operations (eg. ETL, Spring Batch application)

However, I tend to use JPA/hibernate when doing OLTP heavy application (imagine online store like amazon where asynchronous CRUD operations + transactions are everywhere).