-->
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.  [ 1 post ] 
Author Message
 Post subject: HQL query from two tables mapped to classes in a is... hiera
PostPosted: Tue Jan 29, 2008 3:14 pm 
Newbie

Joined: Tue Jan 29, 2008 2:56 pm
Posts: 1
Hi,

When performing a HQL query like this:

from is.company.app.layer.Table1 table1, is.company.app.layer.Table2 table2

an error is returned saying:
unexpected token: is near line...


Running either

from is.company.app.layer.Table1 table1
or
from is.company.app.layer.Table2 table2

works just fine.

So I guess that this class hierarchy starting with is... is causing this problem, as the "is" gets interpreted as a reserved word.


If that's the case, is there a way to escape the class names, so their hierarchy name doesn't conflict with the reserved word "is" ?


Note that running
from Table1 table1, Table2 table2
makes no differences, as the fully qualified clas sname is expanded automatically.


Am using Hibernte 3.1 against MySQL server 5.0.


/Björn


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.