Can I use JSR 380 annotation without spring or hibernate framework : Just tried to run my simple programme with the main method using JSR 380 annotation, but it is not working for me.

here is the code...

import javax.validation.constraints.Min;


public class MainClass {

	public static void main(String[] args) {

		Request request = new Request(5);
	}
}

class Request{
	
	public Request(int greaterThan10) {
		super();
		this.greaterThan10 = greaterThan10;
	}

	@Min(value = 10,message= "value should be greater than 10")
	private int greaterThan10;

	public int getOne2Ten() {
		return greaterThan10;
	}

	public void setOne2Ten(int greaterThan10) {
		this.greaterThan10 = greaterThan10;
	}
	
}

