Michael, Criteria queries are definately not a subset of HQL queries!
For one, they are completely extensible with new user-defined Criterion types. Secondly, they support operations upon "composite" values, which
are not yet supported in HQL.
I'm not sure that we are really ready to go reimplementing the Criteria stuff, to be honest...
Michael Gloegl wrote:
Hi,
I am currently working on rebuilding the Criteria API to generate HQL-AST Trees, which can then be passed on to Joshuas HQL-to-SQL tree parser. I made some small progresses and can create ASTs from simple criteria queries and orders.
However before I get deeper into this, is this possible at all? Basically what I do now is to transform the Criteria Query to a HQL query, even though allready in its AST state. What would interest me, is everything possible in the Criteria API also possible using HQL? Otherwise the aproach I take currently will get problematic. I especially think of things like .returnMaps() and such. Any opinions on this?
Michael
------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
-- Gavin King JBoss Group +61 410534454 http://hibernate.org> Hi,
I am currently working on rebuilding the Criteria API to generate HQL-AST Trees, which can then be passed on to Joshuas HQL-to-SQL tree parser. I made some small progresses and can create ASTs from simple criteria queries and orders.
However before I get deeper into this, is this possible at all? Basically what I do now is to transform the Criteria Query to a HQL query, even though allready in its AST state. What would interest me, is everything possible in the Criteria API also possible using HQL? Otherwise the aproach I take currently will get problematic. I especially think of things like .returnMaps() and such. Any opinions on this?
Michael
------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
-- Gavin King JBoss Group +61 410534454 http://hibernate.org
------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
