About EntityManager

91-100 of 200Refresh
Tutorial
14

Step 4: Add a Servlet Class

().getAttribute("emf"); EntityManager em = emf.createEntityManager(); try ... : The EntityManagerFactory is retrieved from the application scope attribute, and then an EntityManager
Tutorial
14

Step 4: Add a Servlet Class

= (EntityManagerFactory)getServletContext().getAttribute("emf"); EntityManager em ... the application scope attribute, and then an EntityManager (representing a database connection
Manual
9

JPA Criteria API Queries

the EntityManagerFactory's getCriteriaBuilder method or by the EntityManager's getCriteriaBuilder method
Manual
9

JPA Named Queries

at runtime by the same Query and TypedQuery interfaces but different EntityManager factory methods
JPA Doc
9

JPA Queries

getCriteriaBuilder method or by the EntityManager's getCriteriaBuilder method (both methods
Manual
9

JPA Query API

with an EntityManager (represented by em in the following code snippets), which serves as a factory
Manual
9

Online Backup

Backup The online backup can be started by executing a special query on an EntityManager (em
Result
9

Posting to ObjectDB Website - Important Instructions

");         EntityManager em = emf.createEntityManager();         em.getTransaction().begin();         MyEntity e = new
Tutorial
9

Step 3: Add a Main Class

.createEntityManagerFactory("$objectdb/db/p2.odb"); EntityManager em = emf.createEntityManager
Tutorial
9

Step 3: Add a Main Class

("$objectdb/db/p2.odb"); EntityManager em = emf.createEntityManager(); // Store 1000