Hi, Try to change the query to the following instead: from person p where p.class='US' order by name, forename" Andy View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009540#4009540 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009540