About EntityManager

131-140 of 200Refresh
Forum
3

Insertion Speed Rate and Batch Load

the Memory Leak thread uses a separate transaction, and moreover, a new EntityManager per stored entity object. A batch load should reuse the EntityManager and persist a large number of objects ... =             Persistence.createEntityManagerFactory("$objectdb/db/speed.odb");         EntityManager em = emf
JPA Doc
3

javax.persistence.PessimisticLockScope

of the EntityManager, Query, and TypedQuery interfaces that allow lock modes to be specified or used
JPA Doc
3

NamedNativeQuery.name

Annotation Element javax.persistence.NamedNativeQuery String name The name used to refer to the query with the EntityManager methods that create query objects. Since: JPA 1.0
JPA Doc
3

NamedQuery.name

Annotation Element javax.persistence.NamedQuery String name (Required) The name used to refer to the query with the EntityManager methods that create query objects. Since: JPA 1.0
Forum
3

ODB IndexActivation NullPointerException

an EntityManager. 1) sometimes the following System out: * Batch ended at '2LG' * Batch ended at '2LG ... periods Do you mean with opening and closing the creation of EntityManagerFactory or of EntityManager ... a entityManager - close it - and wait a few seconds, that the IndexActiovation thread can finish
Forum
3

Remove an entity which attributes were changed - OptimisticLockException

seems to be using one or more EntityManagerFactory / EntityManager instances, i.e ... "? Are you sure that the same EntityManager (not just the same EntityManagerFactory) is used by ... should be when only one EntityManager is used) or different Java instances? I meant the ObjectDB
Issue
3

Best practise loading big data

this MyStepBlockCollection sbc = entityManager.find(id); for (MyStepBlock sb : sbc.stepBlocks) { for (MyStep s : sb ... after looking at the heap dump to your code in #6 above: MyStepBlockCollection sbc = entityManager ... .persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence
JPA Doc
3

javax.persistence.EntityTransaction

javax.persistence Interface EntityTransaction Interface used to control transactions on resource-local entity managers. The EntityManager.getTransaction() method returns the EntityTransaction interface. Since: JPA 1.0 Learn how to use EntityTransaction in Chapter 3 of the ObjectDB/JPA manual. void
JPA Doc
3

javax.persistence.PersistenceContext

javax.persistence Annotation PersistenceContext Target: Classes and fields (including property get methods) Expresses a dependency on a container-managed EntityManager and its associated persistence context. Since: JPA 1.0 String name (Optional) The name by which the entity manager
JPA Doc
3

javax.persistence.LockModeType

.persistence.EntityManager methods that take locks ( lock, find, or refresh) or to the Query