The problem is still there in hibernate 3.2.0 ga.
All of the following syntaxes give the same warning:
Code:
update myClassName set maxId = :nextEid
update myClassName c set c.maxId = :nextEid
update myClassName as c set c.maxId = :nextEid
The warning is:
Code:
WARN - Using non-qualified column reference [maxId -> ([EIDMAX])]
In the first syntax the warning is ok.
But the second syntax is like the reference documentation
and should give no warning.
The problem is arising in class org.hibernate.hql.ast.tree.FromElementType
method:
Code:
String[] toColumns(String tableAlias, String path, boolean inSelect, boolean forceAlias) {
In the line:
Code:
else if ( fromElement.getWalker().getStatementType() == HqlSqlTokenTypes.SELECT ) {
It fails for the statement types Update and Delete.
I didnt find a bug report for this.