-->
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: Using HQL reserved words as identifiers
PostPosted: Fri Feb 23, 2007 4:58 pm 
Newbie

Joined: Thu Mar 17, 2005 1:55 pm
Posts: 15
I've seen lots of posts detailing how you can use database reserved words as identifiers using backticks. That's all good and dandy, but how can I use HQL reserved words (like "object") as an identifier?

I have a class with a property named "object", and I simply cannot change this class without an unreasonable amount of effort. How can I reference this property in HQL? I've tried alias.object, alias.'object', alias.`object` and alias.[object], to no avail.

This used to work in Hibernate 3.0, but stopped working in 3.2


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 23, 2007 5:04 pm 
Regular
Regular

Joined: Sun Sep 17, 2006 2:48 am
Posts: 81
Location: California
Did you try changing the name of the getter/setter. That could help(but I havent tried that)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 23, 2007 5:17 pm 
Newbie

Joined: Thu Mar 17, 2005 1:55 pm
Posts: 15
somu wrote:
Did you try changing the name of the getter/setter. That could help(but I havent tried that)


That would help, of course, but as I said above, I can't change this class without an unreasonable amount of work.


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.