-->
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: How can I make the tools NOT generate empty catalog in hbm?
PostPosted: Wed Jul 20, 2005 1:27 pm 
Newbie

Joined: Wed May 12, 2004 5:09 pm
Posts: 17
Location: Los Angeles
Hello,

I'm using tools 3.0 alpha 4 to reverse engineer a MySQL table with jdbcconfiguration.
I skip match-catalog in my hibernate.reveng.xml, so it generates an .hbm.xml file with:

<class name="Country" table="country" catalog="">
...

When I try to run a query on that table I get: Table '__country' doesn't exist. The solution is to manually remove the catalog from the hbm file:

<class name="Country" table="country">

My question is, how can I tell the jdbcconfiguration (perhaps in hibernate.reveng.xml?) to generate the hbm.xml file without the catalog?

Thank you in advance for your help!

Egor


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 21, 2005 3:05 am 
Pro
Pro

Joined: Mon Jan 24, 2005 5:39 am
Posts: 216
Location: Germany
Hi,

i didnt try that, but:
It looks like you can write your own velocity templates
and put the under the template paths. I did something
similar for the hbm2java task. Read my posting:
http://forum.hibernate.org/viewtopic.ph ... highlight=

The velocity template for hbm generation are in
hibernatetools.jar subdirectory hbm.

Hope this helps.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 21, 2005 5:06 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
recently fixed in cvs

_________________
Max
Don't forget to rate


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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.