play.db.jpa
Class JPA
java.lang.Object
play.db.jpa.JPA
public class JPA
- extends java.lang.Object
JPA Support
Constructor Summary |
JPA()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
entityManagerFactory
public static EntityManagerFactory entityManagerFactory
local
public static java.lang.ThreadLocal<JPA> local
entityManager
public EntityManager entityManager
JPA
public JPA()
em
public static EntityManager em()
setRollbackOnly
public static void setRollbackOnly()
isEnabled
public static boolean isEnabled()
- Returns:
- true if an entityManagerFactory has started
execute
public static int execute(java.lang.String query)
- Execute a JPQL query
newEntityManager
public static EntityManager newEntityManager()
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly