That is hibernate core failing on the query.
Same thing should happen when you run that query in your app. Does it ?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4219471#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...