Use standard bean validation annotations that are new in 2.0

See gh-9969
pull/9839/merge
Andy Wilkinson 7 years ago
parent 92beba10fe
commit 8ab12d909e

@ -21,7 +21,7 @@ import java.util.Date;
import java.util.LinkedHashMap; import java.util.LinkedHashMap;
import java.util.Map; import java.util.Map;
import org.hibernate.validator.constraints.NotBlank; import javax.validation.constraints.NotBlank;
import org.springframework.context.annotation.Description; import org.springframework.context.annotation.Description;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;

@ -18,7 +18,7 @@ package sample.groovytemplates;
import java.util.Date; import java.util.Date;
import org.hibernate.validator.constraints.NotEmpty; import javax.validation.constraints.NotEmpty;
public class Message { public class Message {
@ -63,4 +63,5 @@ public class Message {
public void setSummary(String summary) { public void setSummary(String summary) {
this.summary = summary; this.summary = summary;
} }
} }

@ -18,7 +18,7 @@ package sample.web.ui;
import java.util.Calendar; import java.util.Calendar;
import org.hibernate.validator.constraints.NotEmpty; import javax.validation.constraints.NotEmpty;
/** /**
* @author Rob Winch * @author Rob Winch
@ -66,4 +66,5 @@ public class Message {
public void setSummary(String summary) { public void setSummary(String summary) {
this.summary = summary; this.summary = summary;
} }
} }

Loading…
Cancel
Save