Are there some differences between syntax of Hibernate 2.1 and Hibernate 3.
I am building a tool to help user writing HQL queries.
When I read the BNF syntawx of HQL I find this :
selectClause : SELECT^ // NOTE: The '^' after a token causes the corresponding AST node to be the root of the sub-tree. (DISTINCT)? ( selectedPropertiesList | newExpression | selectObject) ;
It means that in a select clause you have a list of prop's or (exclusive or)
a class conctructor or an objet.
I can deduce that ,
select foo.a, foo.b, new fooA(), foob is an invalid select clause !
ut it works ! Where am i wrong ?
|