Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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


Thank 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.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: