play.db.jpa.JPA Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of framework Show documentation
Show all versions of framework Show documentation
RePlay is a fork of the Play1 framework, created by Codeborne.
package play.db.jpa;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import play.InvocationContext;
import play.db.DB;
import play.exceptions.JPAException;
import play.libs.SupplierWithException;
import jakarta.persistence.*;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* JPA Support
*/
public class JPA {
private static final Logger logger = LoggerFactory.getLogger(JPA.class);
protected static Map emfs = new ConcurrentHashMap<>();
public static final ThreadLocal