When a table an integer field and it is null, result of the query of the table will return null. Is is a bug? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982050#3982050 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982050