The documents do not mention this, but the "AS" keyword is no longer valid HQL, at least in version 3.1. The exception thrown is Unknown Column, so it can be tricky to debug if you don't fix it.