Description
Gregor Frey opened DATAREST-750 and commented
Proposal:
Change
For example, to validate instances of the Person class before new ones are saved into the repository, you would declare an instance of a Validator<Person> in your ApplicationContext with the bean name "beforeCreatePersonValidator"
to
For example, to validate instances of the Person class before new ones are saved into the repository, you would declare an instance of a org.springframework.validation.Validator in your ApplicationContext with the bean name "beforeCreatePersonValidator"
Change
In your configuration that subclasses Spring Data REST’s RepositoryRestMvcConfiguration, override the configureValidatingRepositoryEventListener method and call the addValidator method on the ValidatingRepositoryEventListener
to
Configure a DealRepositoryRestConfigurerAdapter bean, override the configureValidatingRepositoryEventListener method and call the addValidator method on the ValidatingRepositoryEventListener
Affects: 2.4.2 (Gosling SR2)
Reference URL: http://docs.spring.io/spring-data/rest/docs/2.4.2.RELEASE/reference/html/#validation