-->
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: Bug while using Hibernate Query Language
PostPosted: Fri May 20, 2011 1:36 pm 
Newbie

Joined: Thu Nov 11, 2010 5:45 am
Posts: 4
In my project i'm using the hibernate query language to query the data from my database.I'm maintaining my classes in package name as "in.susee".While i'm comparing the two table using HQL, compiler shows the QuerySyntaxError because of my package name starting word "in."

Eg. query : select station from Station station,Branch branch where station.branch.id=branch.id

Internally compiler uses the my class name with package extension.So the word "in." is keyword in sql so it is creating the problem.After i changed my package name as "com.susee" it's all fine to work..

Is there any way to continue my project with package name "in.susee"...???

Thanks in Advance..


Top
 Profile  
 
 Post subject: Re: Bug while using Hibernate Query Language
PostPosted: Fri May 20, 2011 2:20 pm 
Newbie

Joined: Thu May 19, 2011 8:04 pm
Posts: 6
Can you try using the full package name in your query

select station from in.sucee.Station station, in.sucee.Branch branch where station.branch.id=branch.id


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.