aspose file tools
The moose likes JDBC and Relational Databases 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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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: 3738
    
  10

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 ]

[OCA 8 Book] [Blog]
Scott Selikoff
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3738
    
  10

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!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: advantage of JDBC over Hibernate