Skip to content

Instantly share code, notes, and snippets.

Created September 23, 2012 17:49
Show Gist options
  • Save anonymous/3772473 to your computer and use it in GitHub Desktop.
Save anonymous/3772473 to your computer and use it in GitHub Desktop.
package org.incompletecode.spring.web.domain;
import java.io.Serializable;
import javax.validation.constraints.NotNull;
public class SimpleEntity implements Serializable {
private static final long serialVersionUID = 1L;
private Long id;
@NotNull
private String name;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment