How is your class' name. Suppose it is x.y.User the your HQL-Code would look like SELECT u FROM User u \sandor\ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104945#4104945 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104945