Entity validation based on JSR303