Skip to content

Instantly share code, notes, and snippets.

@tassioauad
Created November 14, 2016 13:36
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 tassioauad/37ab44ace4adc3f24b1165bfa1833158 to your computer and use it in GitHub Desktop.
Save tassioauad/37ab44ace4adc3f24b1165bfa1833158 to your computer and use it in GitHub Desktop.
@Entity
public class Pessoa implements Serializable {
@Column(name="sexo")
@Type(type = "seu.pacote.EnumType",
parameters = { @org.hibernate.annotations.Parameter(name = "enumClassName",
value = "seu.pacote.SexoEnum")})
private String sexoString;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment