diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/test/webmvc/Customer.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/test/webmvc/Customer.java index afc963597..a36e96a42 100644 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/test/webmvc/Customer.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/test/webmvc/Customer.java @@ -12,7 +12,7 @@ import javax.validation.constraints.NotNull; public class Customer { @Id @GeneratedValue private Long id; - @NotNull + @NotNull(message = "no.userid") private String userid; public Long getId() {