I want to develop a small prototype of a application. I have create a database on MySQL 5.6. They have only 2 tables - one reference from mastertable to childtable (It´s like a easy prototype). All tables have a Id-column.
I using the actula e(fx)clipse 4.4, Hibernate 4.3.8, Hibernate Tools 4.0.0 (Final).
I can create all the steps in the turtorials I found (create a hibernate.cfg.xml, console config and hibernate.reveng.xml)
Now I want to customize my reveng.xml. I will configure the settings of the columns. But I cant put them in the reveng.xml with the "Tables & Column"-Dialog. I use the "Add"-Button and the tables are shown and can selected. But if i press the "ok"-button the selection will not send to the xml.
What I doing wrong? Have I forget something?
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory name="">
<property name="hibernate.bytecode.use_reflection_optimizer">false</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.password">password</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost/testapp</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.default_schema">testapp</property>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.search.autoregister_listeners">false</property>
<property name="hibernate.validator.apply_to_ddl">false</property>
<mapping resource="de/mykey/congadmin/entities/Congadminkhall.hbm.xml" />
<mapping resource="de/mykey/congadmin/entities/Congadmincongregation.hbm.xml" />
</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>
<type-mapping>
<sql-type jdbc-type="VARCHAR" hibernate-type="string" length="36"
not-null="true">
</sql-type>
<sql-type jdbc-type="VARCHAR" hibernate-type="string" length="20"
not-null="true">
</sql-type>
</type-mapping>
<table-filter match-name=".*"/>
</hibernate-reverse-engineering>