Fix for Mysql allows editing ids

1. fix the update attribute in the rest api
2. fix in the RepositoryValidationDecorator