package com.routeme.dto;

import org.hibernate.validator.constraints.NotBlank;

public class SearchRequestDTO {
    @NotBlank
    private String startPoint;

    @NotBlank
    private String endPoint;

    public String getEndPoint() {
        return endPoint;
    }

    public String getStartPoint() {
        return startPoint;
    }

}

@@ -19,16 +19,62 @@
 e.dto;%0A%0A
+import javax.validation.constraints.Pattern;%0A%0A
 import o
@@ -160,48 +160,192 @@
    @
-NotBlank%0A    private String startPoint;%0A
+Pattern(regexp = %22%5E%5B%5E0-9%5D*$%22, message = %22Numbers are not allowed%22)%0A    @NotBlank%0A    private String startPoint;%0A%0A    @Pattern(regexp = %22%5E%5B%5E0-9%5D*$%22, message = %22Numbers are not allowed%22)
 %0A   

Implement search input no number validation