Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Disadvantages of ORMs  RSS feed

 
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: 36622
474
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: 22199
38
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!