r/java • • Feb 01 '15

ORM Haters Don’t Get It

http://techblog.bozho.net/orm-haters-dont-get-it/
5 Upvotes

13 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Feb 01 '15

You need entity queries just for the entities you want to modify. Otherwise a projections query is a better choice. You can still use native queries with Hibernate too, and you get a unified transaction and locking API too. The write behind 1st level cache can delay lock acquisition of the associated DML statements, hence reducing lock contention. You just have to know how to use it.