-->
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.  [ 7 posts ] 
Author Message
 Post subject: Where is error log?
PostPosted: Mon Feb 28, 2005 11:23 am 
Newbie

Joined: Wed Aug 11, 2004 11:41 am
Posts: 14
I'm using Hibernate tools 3.0alpha1. When I try to run a query using
the Hibernate Console perspective, it fails. The documentation says
to see the "Error Log view" for details. Where is it? It doesn't appear
in the eclipse Window/show view/other list. Thanks.

Steve Buroff


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 28, 2005 2:14 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
it should be visible when going to the query console.

It is under PDE Runtime views.

You might not have it if you are running a non SDK eclipse product.

.max

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Wrong table name generated.
PostPosted: Mon Feb 28, 2005 2:25 pm 
Newbie

Joined: Wed Aug 11, 2004 11:41 am
Posts: 14
Thanks much. The problem was that I wasn't running the PDE
capability. I now see the Error Log.

The error is:

Caused by: java.sql.SQLException: Table 'firsthib.__orders' doesn't exist.

The table is "orders", not "__orders".

Here is the relevant part of Orders.hbm.xml.

<class
name="firsttry.Orders"
table="orders"
catalog=""
>

Where is it getting the "__" from? Thanks again.

Steve Buroff


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 28, 2005 2:28 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
my guess is you are using mysql and you are hit by the not yet found bug at http://opensource.atlassian.com/project ... se/HBX-117

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 28, 2005 2:33 pm 
Newbie

Joined: Wed Aug 11, 2004 11:41 am
Posts: 14
Right - I am using MySQL. Guess I'll just have to wait for the
next update of the tools. Thanks for all your help.

Steve


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 28, 2005 5:10 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
or just go remove that catalog="" from the generated files....should make everything work fine ,)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: MySQL tools bug workaround.
PostPosted: Tue Mar 01, 2005 10:42 am 
Newbie

Joined: Wed Aug 11, 2004 11:41 am
Posts: 14
That fixed it! Thanks much for all the help. Things seem to be working
well now.

Steve Buroff


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