Quote:
did you point to a database which actually had tables ?
Yes, I did. The database pointed to contains tables. They are, for instance, visible in "Hibernate Console Perspective"-->"Hibernate Configurations" view-->"Database".
Quote:
did your schema/catalog setting match ?
The following code should take alle tables from my schema:
Code:
<table-filter match-schema="mySchema" match-name=".*"/>
Quote:
what is in your cfg.xml and reveng.xml ?
hibernate.cfg.xml: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">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.password">myPassword</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/mySchema</property>
<property name="hibernate.connection.username">myUser</property>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
</session-factory>
</hibernate-configuration>
hibernate.reveng.xml:Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-reverse-engineering PUBLIC "-//Hibernate/Hibernate Reverse Engineering DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" >
<hibernate-reverse-engineering>
<type-mapping>
<sql-type jdbc-type="VARCHAR" hibernate-type="java.lang.String" />
<sql-type jdbc-type="INTEGER" hibernate-type="java.lang.Long"/>
<sql-type jdbc-type="TIMESTAMP" hibernate-type="java.util.Date"/>
<sql-type jdbc-type="CHAR" hibernate-type="java.lang.Boolean" length="1"/>
</type-mapping>
<table-filter match-schema="mySchema" match-name=".*"/>
</hibernate-reverse-engineering>