Looks like org.hibernate.hql.internal.ast.HqlSqlWalker#postProcessDML might need similar logic regarding table alias use with multi-table updates, since it does this:
// Make #@%$^#^&# sure no alias is applied to the table name
fromElement.setText( persister.getTableName() );
Doing a batch update such as {{update versioned Animal set weight = 69 where weight = 0}} generates a SQLGrammarException.
{code} org.hibernate.exception.SQLGrammarException: could not prepare statement at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:123) at org.hibernate.exception.internal.St...
This message was sent by Atlassian JIRA (v6.1-OD-09-WN#6144-sha1:62dfc48)