jQuery in Action, 2nd edition*
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
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: 3703

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: 3703

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: http://aspose.com/file-tools
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