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;
    }

}

package com.routeme.dto;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotBlank;

public class SearchRequestDTO {
    @Pattern(regexp = "^[^0-9]*$", message = "Numbers are not allowed")
    @NotBlank
    private String startPoint;

    @Pattern(regexp = "^[^0-9]*$", message = "Numbers are not allowed")
    @NotBlank
    private String endPoint;

    public String getEndPoint() {
        return endPoint;
    }

    public String getStartPoint() {
        return startPoint;
    }

}

Implement search input no number validation
ROUT-24: Implement search input no number validation
