
org.webpieces.plugins.hibernate.Em Maven / Gradle / Ivy
package org.webpieces.plugins.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