I would use Integer instead of int as the field's type, as only objects can be null. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982941#3982941 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982941