hibernate uses JDBC to comunicate with the DB. when working with hibernate you do not care about JDBC, SQL, Connections and so on. Hibernate is a layer above all this and simplifies your life when storing/retrieving Objects from/to DB. For special cases you can still use a JDBC DB Connection to do some work on DB but the ideal case would be that - other than providing a Connection at startup time - you do not get in touch with JDBC.
I forgot to say that the article that I provided above was written by one of the authors, who is Gavin King... I'm wondering if the "Hibernate in Action" book contains some parts from that article as well...
Anyway, I believe that article would give you a lot of info that you want to know...
Joined: Jul 04, 2003
Originally posted by Gian Franco Casula: Hi Somkiat,
Pardon my ignorance , but what do you mean by Datasource?
Commons DBCP is a specific (and popular) connection pool implementation that uses the DataSource interface. DataSource itself is part of the Java 2 core platform; for more information, see the javadoc and the JDBC API Tutorial and Reference, 3rd ed., by Fisher et al.
PS. disclosure: I was one of the tech reviewers for this book. [ August 31, 2004: Message edited by: Peter den Haan ]