Hello,
I'm trying to reverse engineer my database to hibernate entities in my current Struts 2 project. But i'm facing a problem since when I run the generation I get this :
(translated)
Quote:
org.hibernate.exception.JDBCConnectionException: Getting database metadata
Getting database metadata
org.postgresql.util.PSQLException: The server asked a password authentification but none was provided
The thing is, it was ! And I even could select my tables with the wizard when creating reveng.xml. Here my config :
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">org.postgresql.Driver</property>
<property name="hibernate.connection.url">jdbc:postgresql://localhost:5432/booxstore</property>
<property name="hibernate.connection.username">shinosha</property>
<property name="hibernate.connection.password">****</property>
<property name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property>
<property name="hibernate.hbm2ddl.auto">update</property>
</session-factory>
</hibernate-configuration>
I use PostgreSQL 9.1 (connection role set up with shinosha and **** for pass with booxstore db), latest Hibernate and Eclipse indigo.
Thanks