Here my controller:
@PutMapping("{id}")
public Mono<QdCFPresenter> save(
Long id,
@RequestBody @Valid @NotNull QdCFPresenter qdcf
) {
return this.qdcfService.store(qdcf);
}
I need to validate that id
and qdcf.id
are equals.
The way I need to accomplish that is using javax.validation
.
We have all validation rules all encapsulated using javax.validation
validations.
For example:
public class QdCFPresenter {
private Long id;
@NotNull
private Long codi;
}
So, is there any way to get it USING javax.validation
validations?