• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ORM vs JDBC

 
santhoshkumar samala
Ranch Hand
Posts: 156
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

we are using Jdbc in my project, we are planning move to hibernate. In this process we evaluating on two criterias
1)ORM vs Jdbc
2)Hibernate Vs Other ORM frameworks

can you please give me some pointers on above 2 criterias, your views are most welcome
 
Emanuel Kadziela
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The best idea is to google the question. I went through a similar process and found many good articles out there dealing with these questions quite profoundly. The short answer is that it will always depend on your specific situation, and you must understand the price you will have to pay in order to enjoy the benefits of hibernate.
That said, maybe I can give you some pointers from my experience. First, if you already have a database in place and use existing JDBC, look into Ibatis, it is a viable alternative to hibernate, particularly useful if you're not starting from scratch. Also, look into Spring - despite of the hibernate/spring fallout the two do actually work together pretty well. Make sure you understand hibernate thoroughly and know how to optimize it along with the pooling mechanisms, database connections, etc.
Good luck.
 
Erik Bengtson
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ORM speeds up development. It manages the data access while you simply code using POJO like classes. Unlike ORM, JDBC will require you quite some time of SQL coding. However, ORM requires quite a lot of mapping.

Speaking about performance JDBC is always faster than ORM, unless your application uses several times the same data already cached by the ORM.
 
Pj Murray
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

You may find the following articles useful:

ORM versus DAO:

http://www.codefutures.com/weblog/andygrove/archives/2005/02/data_access_obj.html


Choosing a Java Persistence strategy

http://www.codefutures.com/weblog/andygrove/archives/2005/01/choosing_a_java.html


Regards
PJ
 
Robert Fischer
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Emanuel Kadziela:
The best idea is to google the question. I went through a similar process and found many good articles out there dealing with these questions quite profoundly. The short answer is that it will always depend on your specific situation, and you must understand the price you will have to pay in order to enjoy the benefits of hibernate.
That said, maybe I can give you some pointers from my experience. First, if you already have a database in place and use existing JDBC, look into Ibatis, it is a viable alternative to hibernate, particularly useful if you're not starting from scratch. Also, look into Spring - despite of the hibernate/spring fallout the two do actually work together pretty well. Make sure you understand hibernate thoroughly and know how to optimize it along with the pooling mechanisms, database connections, etc.
Good luck.



Excellent suggestions. I'm in a similar situation in that I'm responsible for identifying the implementation technology on several upcoming projects. I'd like to add that for getting a good sense of a technology's maturity it helps to browse their bug database. This can reveal things like chronic problem areas, turn around time, and how they deal with the user community.

Just out of curiosity, what were you refering to by "the hibernate/spring fallout"? I recall that Spring and Hibernate have been touted as working very well together, the conjunction often being presented as a viable lightweight alternative to EJB.
 
Emanuel Kadziela
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Go to hibernate.org and search their site for the keywords spring or springframework. You might find one vague reference to something quite immaterial. I am not sure what happened and exactly why, but for some time now hibernate has been trying to dissasociate itself from spring (not the other way around, however, as spring very much still supports hibernate). If you google it, I am sure you'll find the same articles I read about this issue. Here is an example

http://houseofhaug.net/blog/archives/2005/08/12/hibernate-hates-spring/
 
Robert Fischer
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Emanuel Kadziela:
Go to hibernate.org and search their site for the keywords spring or springframework. You might find one vague reference to something quite immaterial. I am not sure what happened and exactly why, but for some time now hibernate has been trying to dissasociate itself from spring (not the other way around, however, as spring very much still supports hibernate). If you google it, I am sure you'll find the same articles I read about this issue. Here is an example

http://houseofhaug.net/blog/archives/2005/08/12/hibernate-hates-spring/


Thank you, a great article which I bookmarked. It confirms my own personal experience with the Hibernate (JBoss) folks over the last week. The foam-at-the-mouth hostility that the Hibernate/JBoss people have towards their users and those investigating their technology is truly astonishing. Many of the companies for which I've consulted have fired people for far lesser customer service/relations infractions than those routinely committed by the Hibernate/JBoss folks. Is JBoss staffed mostly by psychotic 10 year olds? :-)

I'm definitely taking a serious look at IBATIS. Thanks for the heads-up.
 
Claude Brisson
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could also have a look at Velosurf
http://velosurf.sourceforge.net

Claude.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Claude Brisson:
You could also have a look at Velosurf
http://velosurf.sourceforge.net

Claude.



Please don't resurrect old threads. Your reply could have helped them months ago, but I doubt they will even see it now, or even need it, unless you are trying to promote your own product. Hmmmmmmmm


Mark
[ November 12, 2006: Message edited by: Mark Spritzler ]
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yep, it appears that you have tried to promote your product a few times in other threads.

Mark
[ November 12, 2006: Message edited by: Mark Spritzler ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic