Skip to content

Instantly share code, notes, and snippets.

@dennysfredericci
Last active June 17, 2020 21:57
Show Gist options
  • Save dennysfredericci/811f72533b30a236a53cc2de15997842 to your computer and use it in GitHub Desktop.
Save dennysfredericci/811f72533b30a236a53cc2de15997842 to your computer and use it in GitHub Desktop.
@Entity
public class Person {
@Id
private Long id;
private String firstName;
private String lastName;
@Convert(converter = GenderConverter.class)
private Gender gender;
//code omitted for brevity
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment