Adding a DataBase Driver in Hibernate



Add the database driver

Even Hibernate needs a database driver to access a database. Open the project properties, click on ?Java Build Path?, select ?Add External Jars? and add your database driver. When you use PostgreSQL you can find your database driver on http://jdbc.postgresql.org when you use MySQL have a look here http://www.mysql.de/products/connector/j
Create database and tables.

Random Posts

  • What is difference between accessing the table single column and accessing the tabe with multiple column key
  • JSF Important Interview Questions
  • Difference between session.save() and session.saveOrUpdate()
  • Jdbc Interview Questions
  • Thread safety of the servlet

Post a Comment