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.
13
votes
Accepted
Should you abandon an ORM framework when you need to implement a bulk operation?
ORMs are not intended to completely take over access to your database. Use them for that 80% of code that's CRUD, the stuff that's too tedious to write on your own. Use stored procedures, dynamic SQ …
3
votes
Accepted
Why should I use an ORM like Entity Framework Core?
Often when explaining what an EF query is doing the author will show the (horrid) generated SQL.
It doesn't matter what the generated SQL looks like, if it accomplishes its intended purpose. You wi …
1
vote
ResourceSerializable: an alternate to ORM and ActiveRecord
There is much talk about ORM's being storage-independent, under the theory that you might want to change out the underlying data store. In practice this hardly ever happens, and it's a lot of work wh …
3
votes
When is it necessary to use ORM tools?
ORM tools should be used for CRUD, that 80% of code that is so tedious to write over and over, that you want to bang your head against the wall. …
2
votes
When using an ORM should mappings be defined in the code file?
Annotations are a nice way to add ORM capability to code that already exists. …
3
votes
Is it bad software design to mix JDBC SQL calls and use an ORM in an application?
But every ORM still has a mechanism for using raw SQL or stored procedures, or allows you to write such procedures outside of the ORM. …
1
vote
Migrating single-layer ORM based app to multi-layer API
It sounds like your API is too granular; that is, you're retrieving chunks of data that are too small.
This code
$accountAddress = $sfUserProfile->getCustomer()->getAccount()->getAddress();
woul …
0
votes
Can Setter Validation affect performance?
If I have a grid that usually returns 500 records, I assume that for each record it passes on all validations. If my entity has 5 setter validations, than I have passed in 2,500 validations.
Only …
8
votes
Examples of mid/large-scale web-apps built without an ORM?
Stack Overflow uses a micro-orm. Unlike Hibernate, it's just a thin veneer around SQL queries.
Answers to your questions:
By writing a SQL query.
It can vary from one line of code to about 40. …
32
votes
Accepted
Is inline SQL still classed as bad practice now that we have Micro ORMs?
What you are describing as "Inline SQL" should really be called "string concatenation without parameterization," and you don't have to do that to use a Micro ORM safely. … Well, for the same reasons you would use custom SQL in any other ORM. Maybe the ORM is code-generating sub-optimal SQL, and you need to optimize it. …
12
votes
Best practices for serialization of DDD aggregates
Kinds of objects
For purposes of our discussion, let's separate our objects into three different kinds:
Business Domain logic
These are the objects that get work done. They move money from one checki …
6
votes
Accepted
What happens to database design process when ORM tools are used?
Does it mean that if we are using an ORM tool we do not need to design our database like before?
You still need a design; it just takes a somewhat different form. …
5
votes
ORM domain design pitfalls
Domains which have entities where the number of attributes (properties, parameters) that can be used to describe them is potentially vast, but the number that will actually apply to a given entity is …
3
votes
Accepted
How to associate both a collection and one item of this collection to an entity
Add a field main_address_id in the User entity or table that holds the ID of the Address record that is the main one. Make that a one to one relationship, if you like.
The only solution I have no …
3
votes
Implementing a NoSQL and RDBMS compatible DAO
Your architecture should look something like this:
Data source <--> Data source driver <--> CRUD interface <--> Application
You'll need one data source driver implementation for each type of data s …