-->
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: Hibernate Tools..Hql doesn't show the results
PostPosted: Sun Apr 08, 2007 6:47 pm 
Beginner
Beginner

Joined: Thu Apr 20, 2006 11:51 am
Posts: 44
Hello. I'm trying to use H.Tools
I'm using annotated classes for the model. I work with Myeclipse5.1.1.
I've installed the last H.Tools plugin. Under my "Hibernate Configurations" now I've all my classes and the "Database" tables shows correctly.
The problem is that whenI try to run a new hql with the "HQL Editor" I don't see anything. I click on run and nothing goes on.
On my Hibernate Console Configuration I've set
Type: Annotations
Configuration file: \MyProject\src\hibernate.cfg.xml
and in Classpath I've added the mysql jdbc jar (I think it doesn't need that)
Someone can help me
regards :)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 08, 2007 7:28 pm 
Beginner
Beginner

Joined: Thu Apr 20, 2006 11:51 am
Posts: 44
Solved.. I have created a new 'Hibernate Console Configuration' and now this works.. I don't know why but it works.. and this's the important thing! :D


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 13, 2007 10:43 am 
Regular
Regular

Joined: Thu Apr 05, 2007 7:05 am
Posts: 53
Location: Troisdorf, Germany
Actually, I have the same problem.

I use a Oracle10g Database and the 3.2 beta 8 version of Hibernate.

I have a Console Configuration with the classpath of the oracle driver and also my sources:
csr/lib/ojdbc14.jar
csr/src
csr/class

When I now use ReverseEngineering everything looks fine. And if I enter a correct HQL query like: "from Test" or "select t.id from Test t" I just get a empty output.

Can somebody help me with that problem? I also tried to make a new configuration but that didn't helped. Have you perhaps done something other than before???

edit: When I copy the generated SQL query and paste it into a direct sql-editor for my database, I get the right information...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 13, 2007 12:03 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
before trying to solve issues, please use beta9

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 16, 2007 4:12 am 
Regular
Regular

Joined: Thu Apr 05, 2007 7:05 am
Posts: 53
Location: Troisdorf, Germany
Okay, I doesn't know what the hell happened but when I started eclipse today at first the Configuration didn't worked. So I made a new run from the reverse engineering and suddenly even HQL works! I've made so many reverse engineerings before and until know I haven't made a update...it is really very strange what happened here!

And even more strange is, that I'm not the only one with this experience...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 16, 2007 4:21 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
What do you mean by "Configuration didn't worked" ...?

Sounds like you actually this time "started" the sessionfactory in the configuration so the query would actually work.

Maybe my error handling for showing a "Session Factory not started" does not catch a specific case that you are hitting.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 25, 2007 11:17 am 
Regular
Regular

Joined: Thu Apr 05, 2007 7:05 am
Posts: 53
Location: Troisdorf, Germany
I had started the SessionFactory every time when it didn't worked. I'm sure I tried everything which was possible for me. The good thing is that the error never happened again.


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.