Your id field is an int and not an Integer. @NotNull is nonsensical for primitive types. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018364#4018364 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018364