Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@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