Skip to content

Instantly share code, notes, and snippets.

@sndyuk
Created January 13, 2015 07:11
Show Gist options
  • Save sndyuk/9d20e0a9324e0c62ae2b to your computer and use it in GitHub Desktop.
Save sndyuk/9d20e0a9324e0c62ae2b to your computer and use it in GitHub Desktop.
public class User {
@NotNull @Email
public String getEmail() { return email; }
public void setEmail(String email) {
this.email = email;
}
private String email;
}
public class UserService {
public void createUser(@Email String email,
@NotNull String name) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment