> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Max Rydahl Andersen
> Sent: Thursday, November 20, 2003 5:24 PM
>
> If i remember the terminology correctly we will get a
> in-memory generated AST tree, right ?
Correct.
> And if we wanted we
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Gavin King
> Sent: Thursday, November 20, 2003 12:15 PM
> To: Joshua Davis
> Cc: 'hibernate-devel'
> Subject: Re: [Hibernate] AST grammar for HQL
>
> I suggest we use a mock Queryable, so that we can
I should be able to start working on an SQL producing examples in the next
few days. I will take a look at net.sf.hibernate.persister.Queryable, and
start a 'tree walker' grammar to round out a typical ANLR source translator
in the typical 'three phase' ANTLR fasion (lexer->parser->tree parser).
Joshua Davis wrote:
Gavin,
Thanks for reviewing the code, and I'm glad to help.
Max Andersen also had a look and he thinks its excellent.
I should be able to start working on an SQL producing examples in the next
few days. I will take a look at net.sf.hibernate.persister.Queryable, and
start
Gavin,
Thanks for reviewing the code, and I'm glad to help.
"addative" - D'oh! I copied those rules from a Java grammar. The copy-paste
anti-pattern strikes again. :)
I should be able to start working on an SQL producing examples in the next
few days. I will take a look at net.sf.hibernate.per
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.Querya