Liste des Groupes | Revenir à co vms |
On Fri, 11 Jul 2025 19:43:59 -0400, Arne Vajhøj wrote:The language can make it more or less cumbersome.The main point of ORM is to avoid boilerplate code like iterating andThose are just up to the DB API, taking advantage of features of the
result sets and stuff them into the object data structure.
language. Like the query iterator I posted elsewhere.
The point of the ORM is supposed to be to get away from SQL altogether,ORM cannot read minds.
and let you operate in terms of language-native objects.
There are 3 common approaches: attributes/annotations, config fileSome ORM's operate with a dirty concept and automatically save changedHow do you map between OO objects and SQL tables?
objects.
That’s called the20 years ago there were some pain points. But solution has been found
“impedance mismatch”, which tends to cause more problems than it solves.
True.Some ORM's provide identical syntax for doing things even though theMore commonly you want to support different programming languages
underlying databases have different SQL syntax for it, which help making
the application more portable.
accessing the same back-end DBMS containing the common enterprise-wide
data, rather than move a program between different back-end DBMSes. ORMs
are language-specific, so they don’t help with that.
Les messages affichés proviennent d'usenet.