Permalink
Browse files

Formatting, removed validation for simplicity

  • Loading branch information...
1 parent 7c3af2d commit f6abfeaa4038504e79a1a06996491bfda0b8f719 @tomhermann tomhermann committed Nov 26, 2011
View
3 build.gradle
@@ -14,8 +14,7 @@ dependencies {
compile 'org.springframework:spring-jdbc:3.0.6.RELEASE'
compile 'cglib:cglib:2.2.2'
- compile 'javax.validation:validation-api:1.0.0.GA'
- compile 'org.hibernate:hibernate-validator:4.2.0.Final'
+ // json support
compile 'org.codehaus.jackson:jackson-mapper-asl:1.8.3'
// slf4j so we can have some awesome logging
View
6 src/main/java/org/jamescarr/examples/Employee.java
@@ -1,10 +1,8 @@
package org.jamescarr.examples;
-import org.hibernate.validator.constraints.NotBlank;
-
public class Employee {
- @NotBlank private String firstName;
- @NotBlank private String lastName;
+ private String firstName;
+ private String lastName;
public String getFirstName() {
return firstName;
View
1 src/main/java/org/jamescarr/examples/EmployeeController.java
@@ -18,6 +18,7 @@
public String index() {
return "/employee/index";
}
+
@RequestMapping(value = "/create", method = RequestMethod.POST)
public String create(Employee employee) {
employees.save(employee);

0 comments on commit f6abfea

Please sign in to comment.