• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Disadvantages of ORMs

 
Kat Rollo
Ranch Hand
Posts: 62
Eclipse IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

What are the disadvantages of using an ORM like Hibernate? I do hope for an objective list of disadvantages, not an "ORM fanboy" list.
Sometimes, it feels like articles don't elaborate or minimize the disadvantages because the author likes the technology so much.

Thanks.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can think of two

1) you might accidentally create a performance problem by loading too many entities.
2) if you have jdbc code using the same tables, you have to be careful with caching so both jdbc and orm are using the same data
 
Paul Clapham
Sheriff
Posts: 21586
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's another one: you have to distribute several megabytes of jars along with your application. Of course like any other "disadvantage", that may be more or less important depending on your environment.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic