mbauer
mbauer

Reputation: 344

JDBC file in Hibernate configuration not found

When I want to add an database connection in Hibernate there are no drivers. I selected Database connection -> "New" then "Generic JDBC" and then there are no drivers listed:

no drivers found hibernate.cfg.xml Does anybody know how to add there a driver for PostgreSQL? Thanks in advance!

Upvotes: 0

Views: 463

Answers (2)

juanluisrp
juanluisrp

Reputation: 237

You can download the Postgresql JDBC Driver from here. Then clic the button on the right of Driver combo in "New connection profile" and choose the Postgresql JDBC driver you have downloaded. See Creating a Driver Definition at Eclipse help webpage.

Upvotes: 1

Kanagasabapathy Rajkumar
Kanagasabapathy Rajkumar

Reputation: 1702

Refer this tutorial . I think you want to create pojo class from the db tables..You can use Hibernate or JPA entities .

Upvotes: 1

Related Questions