-->
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.  [ 2 posts ] 
Author Message
 Post subject: WHY get my tables prefixed with two underscores ???
PostPosted: Tue Apr 05, 2005 5:21 pm 
Newbie

Joined: Tue Apr 05, 2005 2:42 pm
Posts: 2
I've been searching for a while to solve this : I'm 90% sure it's a configuration problem, but it doesn't seem to be so obvious since I couldn't find anything about it. Now I'm really stuck.

so, why do I get this :
Code:
org.hibernate.exception.SQLGrammarException: could not execute query using iterate
[...]
Caused by: java.sql.SQLException: Table 'xxx.__te_articles' doesn't exist


when my config looks simply like this :
Code:
<class
    name="org.foo.TeArticles"
    table="te_articles"
    catalog=""
>

?

I thought it was a NamingStrategy issue, but it's not. Also, none of my config files contains "__".

So, what did I forget ??? thanks for helping me out.


Top
 Profile  
 
 Post subject: Shame on me
PostPosted: Tue Apr 05, 2005 5:41 pm 
Newbie

Joined: Tue Apr 05, 2005 2:42 pm
Posts: 2
I finally found a topic on this forum dealing with this issue : http://forum.hibernate.org/viewtopic.php?t=938551&highlight=underscores&sid=5f4b010a9c77bce4420c817021bd0bdd

Well... It's so obvious that specifying a blank catalog attribute on a class, in a definition xml file, makes DB tables to be prefixed with two underscores.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.