Monthly Archives: enero 2015

connection persistence java

.unwrap() I also used to get null when calling em.unwrap(java.sql.Connection.class); because it was not inside a transaction. When called like this: em.getTransaction().begin(); java.sql.Connection conn = em.unwrap(java.sql.Connection.class); // … em.getTransaction().commit(); this repor now save me.

Publicado en Uncategorized