Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 3rd, 2012  |  syntax: None  |  size: 1.00 KB  |  hits: 54  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Netbeans 7.1 Hibernate Reverse Engineering wizard does not find database driver
  2. "The database drivers are not added to the project classpath."
  3. "Go to project properties to add database library.".
  4.        
  5. <?xml version="1.0" encoding="UTF-8"?>
  6. <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
  7. <hibernate-configuration>
  8.   <session-factory>
  9.     <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
  10.     <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
  11.     <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/sakila</property>
  12.     <property name="hibernate.connection.username">root</property>
  13.     <property name="hibernate.connection.password">apassword</property>
  14.      <property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>
  15.   </session-factory>
  16. </hibernate-configuration>