-->
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.  [ 3 posts ] 
Author Message
 Post subject: Keyword 'order' is being intepreted as an identifier
PostPosted: Thu Nov 03, 2005 5:14 am 
Newbie

Joined: Thu Mar 17, 2005 11:13 am
Posts: 7
Hibernate version: 3.0.5

Hello.

I have a entity called Order. This causes these warnings when I use it on queries:

11:05:49,589 WARN [PARSER] *** WARNING: Keyword 'order' is being intepreted as an identifier due to: expecting IDENT, found 'order'

Is there a way to get rid of this warning? (Other that setting log level to error)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 03, 2005 11:10 am 
Expert
Expert

Joined: Wed Apr 06, 2005 5:03 pm
Posts: 273
Location: Salt Lake City, Utah, USA
Did you try enclosing the table name in backticks? See http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#mapping-quotedidentifiers

_________________
nathan


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 30, 2005 9:39 am 
Newbie

Joined: Thu Mar 17, 2005 11:13 am
Posts: 7
Thanks for your answer, I now finally had time to look into this...

SQL is generated ok, so SQL escaping won't solve this. Everything works ok, but HQL parser just gives this warning everytime query is used. I think it's the query like this:

from Item i where i.order=:order

And I would like to keep using named parameter "order" because that the correct name for it.

Anyway, not so major thing, so I won't spend more time on this unless some happens to know an easy solution...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.