bean validation to entities