Commit 8ab12d90 authored by Andy Wilkinson's avatar Andy Wilkinson

Use standard bean validation annotations that are new in 2.0

See gh-9969
parent 92beba10
...@@ -21,7 +21,7 @@ import java.util.Date; ...@@ -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; ...@@ -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 { ...@@ -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; ...@@ -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 { ...@@ -66,4 +66,5 @@ public class Message {
public void setSummary(String summary) { public void setSummary(String summary) {
this.summary = summary; this.summary = summary;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment