-->
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: Extending HQL with new tokens
PostPosted: Tue May 04, 2010 6:17 am 
Newbie

Joined: Thu Feb 11, 2010 2:05 pm
Posts: 4
Location: Ghent, Belgium
I'm working in a project to add Fuzzy query capabilities to HQL.
http://en.wikipedia.org/wiki/FSQL

I'm trying to extending HQL in the following way:

- Create new tokens, like FEQ.
- Rendering sql from this token.

Example:
FEQ is a binary operator
HLQ:
select c from Car c where c.colour FEQ 254;
I want to render something like this into SLQ:
select c from Car c where ((c.colour = 254) OR ((c.colour >250) AND (c.colour<260)));

I want to do this without generating a new hql grammar and compiling hibernate source.
Any ideas?


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.