File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and the fly likes advantage of JDBC over Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "advantage of JDBC over Hibernate" Watch "advantage of JDBC over Hibernate" New topic

advantage of JDBC over Hibernate

ram shyam
Ranch Hand

Joined: May 04, 2007
Posts: 77
Hi all,

What is the advantage of using JDBC over Hibernate technology?
Which one is more preferable for querying multiple records in a large database?

Please let me know the pros and cons as I am fresh to back-end technologies.

Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3700

JDBC is theoretically faster (or the same) than hibernate since hibernate is always reduced to low-level JDBC calls. Even with hibernate, some advanced queries will require either direct JDBC or good stored procedures; object mapping tools really don't eliminate complex database issus, just simple ones like simple pojos/dos.
[ May 09, 2007: Message edited by: Scott Selikoff ]

My Blog: Down Home Country Coding with Scott Selikoff
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3700

Hi "ram_shyam"

Welcome to JavaRanch!

Can you please update your display name so it complies with our Naming Policy. You can do this here.

I agree. Here's the link:
subject: advantage of JDBC over Hibernate
Similar Threads
Wht is data persistency.
Usage of JDBC in the IT industry
what are the advantage of Hibernate Over Jdbc?
Hibernate over Jdbc