The image shows the step to create the validator class for each of the DTO. Maintain the same package structure as that of DTO project while creating the validator classes. To name the validator, use the DTO name appended with prefix ‘Validator’.