Skip to content

Instantly share code, notes, and snippets.

@dennysfredericci
Last active June 17, 2020 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dennysfredericci/3f7ef47b6f320d972a55e785d667ce6c to your computer and use it in GitHub Desktop.
Save dennysfredericci/3f7ef47b6f320d972a55e785d667ce6c to your computer and use it in GitHub Desktop.
@Entity
public class Person {
@Id
private Long id;
private String firstName;
private String lastName;
@Enumerated(EnumType.STRING)
private Gender gender;
//getters and setters (omitted for brevity)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment