Created
October 25, 2015 23:16
-
-
Save gregori/64689ce3fa7fec4a766a to your computer and use it in GitHub Desktop.
Passo 3b
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
@Component | |
@RepositoryEventHandler(Pessoa.class) | |
public class PessoaEventHandler { | |
@PreAuthorize("hasRole('ROLE_ADMIN')") | |
@HandleBeforeSave | |
public void checkPUTAuthority(Pessoa pessoa) { | |
// somente para verificação de segurança | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment