Hibernate version: 3.2.0GA
Hibernate tools version: 3.2.0.b8
Java Version: 1.5.0.7
Eclipse Version: 3.2.1
Postgres: 8.0 w/ JDBC driver 8.1b407
I have a database that unfortunately uses "class" as a table name and there are several tables that refer to this database. I've created a reveng.xml through the tools interface that I believe should rename the "class" object to TFARClass and members of referring classes to tfarClass. When I build the classes, the "TFARClass" object is created but all the referencing classes still have members called "class", which obviously doesn't work.
reveng.xml:
<?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-name="New Table" match-schema="public"
exclude="true" />
<table-filter match-name="view0" match-schema="public"
exclude="true" />
<table-filter match-name="view1" match-schema="public"
exclude="true" />
<table-filter match-name="view2" match-schema="public"
exclude="true" />
<table-filter match-name="view3" match-schema="public"
exclude="true" />
<table-filter match-name="validhub" match-schema="public"
exclude="true" />
<table-filter match-schema="public" match-name=".*" />
<table schema="public" name="class"
class="com.tfn.to.tfar.da.TFARClass">
</table>
<table schema="public" name="host"
class="com.tfn.to.tfar.da.Host">
<column name="classid" exclude="true" jdbc-type="INTEGER"
property="tfarClass" type="TFARClass" />
</table>
<table schema="public" name="doclink"
class="com.tfn.to.tfar.da.DocLink">
<column name="classid" exclude="true" jdbc-type="INTEGER"
property="tfarClass" type="TFARClass" />
</table>
<table schema="public" name="classrange"
class="com.tfn.to.tfar.da.ClassRange">
<column name="classid" exclude="true" jdbc-type="INTEGER"
property="tfarClass" type="TFARClass" />
</table>
</hibernate-reverse-engineering>
Any suggestions, comments would be appreciated.
|