@NotNull is a validator annotation. And as a long can't be null (it will be 0), the
validation passes. Removing @NotNull should fix it.
Perhaps ask on the hibernate forums as well - I'm not sure of exactly how this should
work.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098336#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...