First off - the documentation on the tools stuff is pretty good. Took me a little longer than expected to get the ANT stuff running, but the eclipse stuff was pretty straight forward. (Love the hsql table properties and data grids!) Too bad it doesn't work in IDEA :)
Anyway the reason I am writing is because:
1) I haven't seen any way to still use the XDoclet stuff with the new Tools package? Is there a no longer support. On a lighter note I have the EJB3 annotation stuff working and its cool.
2) I am having trouble filtering out Views in the ReverseEng strategy...
Code:
<jdbcconfiguration
configurationfile="hibtools/jdbc/hibernate-mssql.cfg.xml"
strategy="com.mydomain.hibernate.MyReverseEngineeringStrategy"
revengfile="hibtools/jdbc/reveng.xml"
packagename="com.mydomain.reveng" />
AND
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.0dtd" . >
<hibernate-reverse-engineering>
<type-mapping>
<sql-type jdbc-type="SMALLINT" hibernate-type="java.lang.Integer" />
</type-mapping>
<table-filter match-name="sys*" exclude="true" /> <!-- Exclude sys* tables from all catalogs/schemas -->
<table-filter match-name="dtproperties" exclude="true" /> <!-- Exclude dtproperties table from all catalogs/schemas -->
</hibernate-reverse-engineering>
Is there going to be a:
Code:
<view-filter match-name="sys*" exclude="true" />
and
Code:
<table-filter match-type="system" exclude="true" />
because currently views and sytem tables all get mapped and I can't figure out how to stop it. The 'match-name' doesn't have any affect.
3)
Code:
<sql-type jdbc-type="SMALLINT" hibernate-type="java.lang.Integer" />
In my custom reveng.xml doesn't seem to work. I still end up with 'Short' in the mapping files.
p.s. on section 2.2 of the ANT Task Documentation
it has:
Code:
<configuration configurationfile="hibernate.cfg.xml"/>
but shouldn't it be:
Code:
<annotationconfiguration configurationfile="hibernate.cfg.xml"/>
Cheers and thanks for the great work...
Troy