3 ms·
Interestingly enough, no one ever listened to Gavin King (creator of Hibernate), when he said that you shouldn't use an ORM for everything. It is relatively ea
by lukaseder 12y ago
Interestingly enough, no one ever listened to Gavin King (creator of Hibernate), when he said that you shouldn't use an ORM for everything.
It is relatively easy to draw a clear line between using:
* ORMs for domain model persistence (complex, stateful CRUD)
* SQL for relational model interaction (complex, stateless querying)
Bottom line:
* Don't use ORMs for querying
* Don't use SQL for complex CRUD
- GordyMD 12y agoThank you for sharing this. Do you have a source for this quote? It completely reflects my experience over the years of what makes sense given the relative merits and pitfalls of each method.
- lukaseder 12y agoYes, the source is here: https://plus.google.com/+GavinKing/posts/LGJU1NorAvY https://plus.google.com/+GavinKing/posts/LGJU1NorAvY