File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes DB Driver used by Hibernate. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "DB Driver used by Hibernate." Watch "DB Driver used by Hibernate." New topic

DB Driver used by Hibernate.

Yatish Sonkeshariya

Joined: Sep 28, 2011
Posts: 16

Hello All,
Which TYPE of Driver used by Hibernate(Type-1, Type-2, Type-3, Type-4) and Why?

Thanks, Yatish Sonkeshariya
Pune(411001), India
ritvik pandya

Joined: Jan 14, 2012
Posts: 1

I believe it depends, which driver class we are specifying and the installed JRE . Hibernate is not limited to any particular driver type.
Please correct me if I'm wrong.

God and Java are everywhere ...
Tim Moores

Joined: Sep 21, 2011
Posts: 2415
Hibernate uses whichever driver you specify; it could be any type. Everything but type 4 drivers have been out of fashion for quite a while, though.
I agree. Here's the link:
subject: DB Driver used by Hibernate.
It's not a secret anymore!