Hi,
I am trying to create an ant task for the cfg2hbm generator.
I tried to configure the filters to filter out the system tables for MS SQL, but it doesn't seem to work.
I end up with a bunch of mapping files for some system tables.
Here's my ant target:
Code:
<target name="generateMappingFromDatabaseTables">
<hibernatetool destdir="../src">
<jdbcconfiguration propertyFile="build_HibernateTools.properties" packagename="project.vo" revengfile="reveng.xml">
</jdbcconfiguration>
<cfg2hbm />
</hibernatetool>
</target>
Here's my reveng.xml
Code:
<hibernate-reverse-engineering>
<table-filter match-name="*" exclude="true" />
<table-filter match-name="MM_*" exclude="false" />
</hibernate-reverse-engineering>
WIth this setting, I got the following extra tables:
dtproperties
syssegment
sysconstraints
Strange thing is that there are actually some more system tables in the database that wasn't reversed engineered??
Any ideas where I can download the DTD for the reveng.xml file from? I tried to hit the URL for it, but it gave me a "page cannot be found" error. My context-aware XML editor in Eclipse didn't pick up anything also, since I did not get any hints at all on what attributes and child-elements there are.