-->
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: [Solved]HQL Query: QuerySyntaxException: Client is not map..
PostPosted: Fri Jul 23, 2010 9:39 pm 
Newbie

Joined: Fri Jul 23, 2010 4:56 pm
Posts: 4
Hi everybody,

I had just begun my first web application with NetBeans and using the frameworks JSF et Hibernate. I followed step by step the official tutorial in Netbeans's Website Using Hibernate in a Web Application, but I had some trouble when I tried to test my queries with HQL Query. In summary, I :

1. created the Hibernate Reverse Engineering file

2. created the Hibernate POJOs and Mapping XML files

3. created a Java class named ClientHelper that would help me retrieving and displaying data

When I tape 'from Client' in the HQL Query, I had this kind of message: QuerySyntaxException: Client is not mapped. Can someone help me??


Last edited by revo1789 on Fri Jul 23, 2010 11:56 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: HQL Query: QuerySyntaxException: Client is not mapped
PostPosted: Fri Jul 23, 2010 11:55 pm 
Newbie

Joined: Fri Jul 23, 2010 4:56 pm
Posts: 4
This is weird, but I found a similar case in a french forum..

The solution is to build the project before trying to test the HQL Query window, just that :)


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