FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » ORMs comparisons/complaints.
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: ORMs comparisons/complaints. [message #184312 is a reply to message #184311] Sun, 22 December 2013 19:46 Go to previous messageGo to previous message
Arne Vajhøj is currently offline  Arne Vajhøj
Messages: 27
Registered: December 2013
Karma:
Junior Member
On 12/22/2013 2:05 PM, Daniel Pitts wrote:
> This is cross-posted to cl.java.programmer and cl.php.
>
> I've been doing some thinking about my experiences with various ORMs,
> both positive and negative. I find that I often stretch systems to
> there limits, and end up doing a lot of meta-programming to solve
> problems that I've always felt should have been solved by the core
> libraries. Mostly to follow DRY and KISS principals in the core
> business code.
>
> I'm curious if others' have found the same things I have, or if they've
> been satisfied doing things other ways, and if so what ORMs they use.
>
> I've had experience with the following Java ORMs:
> * Hibernate (version 3, using Annotations for instance)
> * Ibatis (many years ago, don't remember the version. around 2006)
> * Straight JDBC. Not exactly an ORM :-)
>
> And then one non-Java ORM: Doctrine, which is modeled after Hibernate,
> including most of its flaws, but missing some of its features.
>
>
> So, my question to the groups, what ORMs have you used, and what did you
> like and hate about each of them? I'm not trying to start a flame war,
> so please keep it to personal experiences with projects which used them.
>
> I'm interested in use-cases from simple small one-off applications to
> complex enterprise-level systems, and highly-scalable systems.
>
> Please include details like "it's easier to maintain <x> type of changes
> with our approach, but <y> is very difficult" etc...

My experience is that ORM is good for cases where all of the
following apply:
- changes of single rows or simple queries
- database is designed for ORM or are relative simple

ORM is obviously not intended for changing large number of rows
(bulk operations).

For very complex queries one end up working around limitations
in the QL to achieve what is easy to do in SQL.

Old legacy databases with a bad design is very difficult to
map to ORM and the result often perform very poorly.

ORM's used:
Java - entity EJB's, Hibernate, JPA
.NET - NHibernate, LINQ to SQL, EF

Non ORM used:
Java - JDBC
.NET - ADO.NET
PHP - mysql, mysqli and PDO extensions

Preference:
Java - JPA (due to standard, features and ease of use)
.NET : NHibernate (due to features and ease of use)

Arne
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: tracking file usage
Next Topic: Processing accented characters submitted from forms
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 03:10:30 GMT 2024

Total time taken to generate the page: 0.04786 seconds