org.webpieces.plugin.hibernate.Em Maven / Gradle / Ivy
package org.webpieces.plugin.hibernate;
import javax.persistence.EntityManager;
public class Em {
private static ThreadLocal emThreadLocal = new ThreadLocal<>();
public static void set(EntityManager em) {
emThreadLocal.set(em);
}
public static EntityManager get() {
return emThreadLocal.get();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy