Last night I wrote some code which I was kinda
proud of at the time (I proved I could add new
functionality to the query parser all by myself),
but now I'm not so sure that my approach was Good.

Basically, I added the builtin functions to the
grammar - stuff like this:

 lower(x)
 upper(x)
 current_date
 current_time
 current_timestamp

with the idea that they would be translated to the
appropriate construct for the platform. (Got it
working for all clauses, including select clause.)

But after that, I thought that maybe you guys would
prefer if we handled all this as an ordinary
function form, and recognize the builtins in java
code.

Looking for some guidance....

--
Gavin King
+61 410 534 454
+1 404 822 8349
callto://gavinking

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]
http://jboss.com



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to