Java Database Connectivity (JDBC) is a set of APIs to connect to the database in a standard way. Since Hibernate provides Object/Relation mapping,it must communicate to the database of your choice. And that cannot happen without the use of a vendor dependent component that understands the target database and the underlying protocol. Usually the database vendors provide set of 'connectors' to connect with their database from external applications with different set of technologies / languages. JDBC driver is widely accepted connector that provides a fairly standard implementation of the JDBC specification. The point of discussion of JDBC here is,that you should know the basics of JDBC and how to use it with Hibernate.
Database connection can be provided by the Hibernate framework or by a JNDI Data source. A third method,user-provided JDBC connections,is also available,but it's rarely used. Typically,in standalone applications,we configure the JDBC connection properties in hibernte.cfg.xml file. In case of applications deployed in an application server,we may choose to use a container-managed data source,or provide a self-managed connection that we might already be using throughout the application. Hibernate itself does not impose a restriction to open or configure a separate connection for the Hibernate use only and keep other configurations to be used by rest of the application.
Before starting off with the Hibernate,make sure that you have essential set of JDBC libraries for the database you are going to use for your application.
Java Discussion
- - Interviewing Next week -
- - Sudoku solver
- - Setting tab order in swin
- - Java opportunities
- - Struts



