Created
December 16, 2014 02:42
-
-
Save samuelsonbrito/de169b49976f1b4c4da2 to your computer and use it in GitHub Desktop.
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
private void salvarUsuario(Usuario usuario) { | |
EntityManager entityManager = getEntityManager(); | |
entityManager.getTransaction().begin(); | |
entityManager.persist(usuario); | |
entityManager.getTransaction().commit(); | |
entityManager.close(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment