Very cool. I checked it out, but to be honest I won't have time to look
at it till next week (book deadline).

Thanks Joshua

Joshua Davis wrote:
I've managed to achieve a small success, in that I've been able to execute
the following with the new AST based QueryTranslator:

        Session s = openSession();
        Iterator iter = s.iterate("from org.hibernate.test.Foo");
        int count = 0;
        while (iter.hasNext())
        {
                ...
        }

Thanks to Gavin for giving me a few tips about the existing QueryTranslator
(well, it's QueryTranslatorImpl in my branch ;) ).  Here are a few design
decisions that I made along the way:

* Made QueryTranslator an interface, and split out the 'query splitter'.  We
can deal with that one later.
* A system property drives which implementation of QueryTranslator will be
used, this has been very helpful in comparing the two implementations while
unit testing.
* It's still a three pass design: syntax analysis, semantic analysis, code
generation.
* Added a new token to the SQL output tree, which is passed through the code
generator without modification.
* Made the 'loader' part of QueryTranslator a delegate to separate the
concerns.


There's still a bunch of clean up to do, as there was a good amount of trial and error coding and debugger tracing required for me to understand some of the data structures needed by the callers.

Max & Gavin,

You guys should be able to see it in my CVS repository now.


Josh



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua Davis
Sent: Sunday, January 18, 2004 11:36 AM
To: 'Max Rydahl Andersen'
Cc: [EMAIL PROTECTED]
Subject: RE: [Hibernate] AST driven QueryTranslator



Sorry, I've been a bit busy at work. :-/ I should be able to get back to the new QueryTranslator sometime this coming week.


Josh


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Max Rydahl Andersen
Sent: Saturday, January 17, 2004 7:56 PM
To: Joshua Davis
Cc: [EMAIL PROTECTED]
Subject: Re: [Hibernate] AST driven QueryTranslator



Joshua Davis wrote:



Well, it's checked in but it doesn't work... yet.




Any news ? ;)


/max


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________
hibernate-devel mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel






-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel






------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel

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



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to