-->
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.  [ 4 posts ] 
Author Message
 Post subject: hibernate console 3.1 problem whith queries select count(*)
PostPosted: Thu Apr 05, 2007 1:02 pm 
Newbie

Joined: Thu Apr 05, 2007 12:51 pm
Posts: 2
Hi, i work with Hibernate 3 in Eclipse and Jboss.
hibernate console 3.1

I configured hibernate console in order to execute some HQL queries. I had some erros cause of some mappings :

in a query, i wrote "select new ClassDTO(p, count(*)) from Param p..."

(it's an exemple).

The problem is that the constructor of the ClassDTO takes 2 parameters :

one for "Param" and another "Long" for the count(*).
When i launch JBoss and my application, all work, but i want to launch the hibernate console, i have erros. The solution is to put the second parameters in Integer in order hibernate console works. But then Jboss d'ont work !!

JBoss work with Long
hibernate console work with Integer

I tried to install hibernate console 3.2 but eclipe don't want to start then !!

Can you help me ?

thanks.
Antoine


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 05, 2007 9:07 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Indeed the return type change has caused some problems (but it was the right change to make). You will need to run the supported version of eclipse for the latest version of the plugins. See docs.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 06, 2007 3:31 am 
Newbie

Joined: Thu Apr 05, 2007 12:51 pm
Posts: 2
Hi thanks for your reply.

I tried to install the new version of the plugin of hibernate console, but i couldn't launch eclipse after (it freezes). To install the plugin, i put in the plugins directory "org.hibernate.eclipse.console_3.2.0.beta9a" instead of "org.hibernate.eclipse.console_3.1.0.beta4a". Then i tried to launch eclipse. Is there anything to do before running eclipse ? Did i install not properly the new version of the plugin ?

here is my environnement :

Eclipse SDK -Version: 3.1.1
jboss-4.0.5.GA
hibernate 3.1 beta4a (i think)

Another question : is there a possibility when i export the shema to obtain a graph of the entities instead of the list and their description ?

Thanks a lot.
Antoine


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 07, 2007 3:13 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
try and run eclipse with a -clean argument.

Otherwise try and remove all org.hibernate.* directories and put in just the new ones.

With respect to graphs then show the Entity Model view and click the "configuration" node and you should get a graph.

_________________
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.  [ 4 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.