• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jdbc vs hibernate

 
nani prasad
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to my knowledge jdbc is very fast and reliable than hibernate.Why people are running after hibernate i want to know?
 
Saif Asif
Ranch Hand
Posts: 440
Eclipse IDE Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings nani and welcome to the ranch,
It is a long debate as to decide which technology is better and which one is not. The true answer is infact "Neither" of them are good nor bad. It all depends on your needs and your requirements. In my opinion , and yes others may have other views on it , hibernate is more of an ORM framework that helps ease the whole Data-base communication between your application and your DB. It is an implementation of the java JPA API and as far as I have used hibernate , its quite suitable if your application has to query millions of rows at an instance. The query building api as I call it , Criteria API is a very powerfull feature of hibernate where you can just make a query by providing some rules and conditions at run-time.

On the other end JDBC is more of a low level DB utility where you can directly write in queries as String and execute them via java.sql packages.

Low-level utilities are more powerful if you have to perform some in-depth query operations that you feel hibernate won't be able to help you with but I have used hibernate quite a lot and uptill yet, I havent faced any kind of issue where I felt that basic JDBC can be my only way out. Hibernate has grown quite powerful and more and more organizations are adapting it.

From my experiences, I would share one thing that hibernate is a bit slow and you may face some performance issues if not used correctly.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic