Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Object-relational mapping (ORM) is a technique for mapping between object-oriented systems and relational databases.
93
votes
Accepted
Is ORM an Anti-Pattern?
Yes ORM is one of the most useful anti-patterns out there. You will understand why only if you find yourself in a practical situation where you'll have to swap databases in a project. … ORM is one of those things, that you only fully understand when you actually need them.
Off course, as everything useful, ORM is highly prone to abuse. …
15
votes
Accepted
For an ORM supporting data validation, should constraints be enforced in the database as well?
If it fails, it failed, bypassing the ORM to talk to the data storage directly is not a good idea.
Bypassing the ORM for anything else
Also not a good idea. … Either you keep maintaining the non ORM parts, or you rewrite them to use the ORM. …