Created
May 29, 2018 16:42
-
-
Save nosrednawall/a1ea7a243d8713c5f4687512c2d38960 to your computer and use it in GitHub Desktop.
Exemplo de como usar um enum binário
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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