Skip to content

Instantly share code, notes, and snippets.

@Sam-Kruglov
Last active January 11, 2018 10:26
Show Gist options
  • Save Sam-Kruglov/3b12f0889c79392e195918e198d8f061 to your computer and use it in GitHub Desktop.
Save Sam-Kruglov/3b12f0889c79392e195918e198d8f061 to your computer and use it in GitHub Desktop.
DTO for User
/**
* Only defines a {@link com.samkruglov.entities.User#username username}.
*/
public class UserUsername {
private final String username; // getter & consctuctor
// equals & hashcode
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment