These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Some directives in reveng.xml disregarded?
PostPosted: Fri Oct 20, 2006 11:44 am 
Newbie

Joined: Fri Feb 03, 2006 1:22 am
Posts: 2
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 20, 2006 2:02 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
if you could reduce this to a simple testcase (with the corresponding sql schema) then put it in jira and i'll look into it. Associations should "see" the redefined classname.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Posted to JIRA
PostPosted: Fri Oct 20, 2006 3:03 pm 
Newbie

Joined: Fri Feb 03, 2006 1:22 am
Posts: 2
Key : HBX-784


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.