Created
January 13, 2015 07:11
-
-
Save sndyuk/9d20e0a9324e0c62ae2b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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