Skip to content

Instantly share code, notes, and snippets.

@nosrednawall
Created May 29, 2018 16:42
Show Gist options
  • Save nosrednawall/a1ea7a243d8713c5f4687512c2d38960 to your computer and use it in GitHub Desktop.
Save nosrednawall/a1ea7a243d8713c5f4687512c2d38960 to your computer and use it in GitHub Desktop.
Exemplo de como usar um enum binário
public enum StatusBinarioEnum {
ATIVO,INATIVO;
}
@Enumerated(EnumType.STRING)
@Column(nullable = false, name = "status")
private StatusBinarioEnum status;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment