Created
March 12, 2019 18:44
-
-
Save nosrednawall/39ffcc165553b431f8e173cdea37ca2a to your computer and use it in GitHub Desktop.
annotations para enums
This file contains hidden or 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
| @ElementCollection | |
| @CollectionTable(name = "tb_perfil_permissao", | |
| joinColumns = @JoinColumn(name = "perfil_id")) | |
| @Column(name = "permissao", nullable = false) | |
| @Enumerated(EnumType.STRING) | |
| private Set<PermissaoEnum> permissoes = new HashSet<PermissaoEnum>(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment