Hi
I am trying perform reverse engineering on MYSQL database.
It seem to run file, but not generating any files eg class or hbm.
Here is my setup file.
build.xml
Code:
<!-- hibernate tool reverse engineering -->
<hibernatetool destdir="${sourcedir}" templatepath="${revengdir}/templates">
<classpath>
<path location="${classesdir}" />
<path location="${toolclassesdir}" />
</classpath>
<jdbcconfiguration
propertyfile="${revengdir}/hibernate.properties"
packagename="net.ps.domain.hibernate"
revengfile="${revengdir}/hibernate.reveng.xml"
reversestrategy="net.ps.tool.hibernate.ReverseEngineeringStrategy"
detectmanytomany="false"
detectoptimisticlock="true"
>
</jdbcconfiguration>
<hbm2hbmxml />
<hbm2java />
<hbm2cfgxml destdir="${sourcedir}" />
</hibernatetool>
Hibernate.properties
Code:
hibernate.bytecode.use_reflection_optimizer = false
hibernate.cache.provider_class = org.hibernate.cache.EhCacheProvider
hibernate.cache.use_second_level_cache = false
hibernate.default_batch_fetch_size = 16
hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
hibernate.format_sql = true
hibernate.generate_statistics = true
hibernate.show_sql = true
hibernate.connection.driver_class = com.mysql.jdbc.Driver
hibernate.connection.url = jdbc:mysql://localhost/PS1
hibernate.connection.username = root
hibernate.connection.password = xxxx
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-schema="PS1" match-name="land"/>
<table-filter match-schema="PS1" match-name="prop"/>
<!-- PS1 schema -->
<table schema="PS1" name="land">
<primary-key>
<generator class="native" />
</primary-key>
</table>
<table schema="PS1" name="prop">
<primary-key>
<generator class="native" />
</primary-key>
<foreign-key constraint-name="landId">
<set exclude="true" />
</foreign-key>
</table>
</hibernate-reverse-engineering>
When I run batch file, it doesn't give any error and display message,build successfully.
But I don't see any files get genrated.
Please could you help where i am going wrong.
many thanks