OK, looks really great. So, now that we have a really nice grammar for
HQL, whats the next step?

Well, lets get it to spit out some SQL, I suppose. I think the first
step is to get it to translate:

from Foo foo where foo.id = 1

to SQL, given a mock instance of net.sf.hibernate.persister.Queryable.

Joshua, I know little about building proper compilers (I know a very
little about parser compilers, but thats all) and it is universally
agreed that my only previous attempt at it (net.sf.hibernate.hql) is
..... inelegant ..... so it would be fantastic if you could get me
as far as showing me a proper design pattern for this. It would
be fantastic if you could implement the above for me, to demonstrate
what a proper translator looks like - that way I can pick up the
other side of things (spitting out SQL) and integrate into Hibernate.

I'd like to really keep moving with this - its really good and we
need it....

Thanks

Gavin

P.S. "addative" is spelled "additive" ;)

Joshua Davis wrote:

I've checked my code into my own CVS repository on Source Forge, in case anyone wants to have a look. Cleaned things up a bit, the tests should run anyway. The build depends on: ANT, ANTLR, and JUnit

[EMAIL PROTECTED]:/cvsroot/yajul Module=hql

Web view: http://cvs.sourceforge.net/viewcvs.py/yajul/hql

Check it out. (pun intended... sorry!)


--
Gavin King
JBoss Group
+61 410534454
http://hibernate.org



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to