aspose file tools*
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
Author

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.

Thanks,
Deepa
Scott Selikoff
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3716
    
    5

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
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3716
    
    5

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.

Thanks!
 
wood burning stoves
 
subject: advantage of JDBC over Hibernate