I really don't get the code generation working.
The hibernate console is working. I can see the tables of my database.
I've created the reveng.xml with the code generation wizard.
I've set export rules (Domain, HBM,DAO, cfg.xml).
I've set the target directory and a target package.
But when I run the code generation, only 1 file is generated: the cfg.xml.
What do I do wrong?
PS: The tables are empty at the moment. But the DAOs should be generated anyhow.
This are my files:
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.gjt.mm.mysql.Driver</property>
<property name="hibernate.connection.password">meinPasswort</property>
<property name="hibernate.connection.url">jdbc:mysql://127.0.0.1/knetpersistence</property>
<property name="hibernate.connection.username">User</property>
<property name="hibernate.default_schema">knetpersistence</property>
<property name="hibernate.dialect">org.hibernate.dialect.MySQL5Dialect</property>
</session-factory>
</hibernate-configuration>
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>
<table-filter match-catalog="knetpersistence" match-schema="knetpersistence" match-name="t_con_infobundle_keyword" exclude="true"/>
<table-filter match-schema="knetpersistence" match-name=".*"/>
</hibernate-reverse-engineering>