Home » Search

About EntityManager

131-140 of 200Refresh
JPA Doc
2

javax.persistence.PessimisticLockScope

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

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
2

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
2

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
2

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
Forum
2

Persist error @ManyToMany how to define correct entities relationships

.Entity; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import ... ; EntityManager em; void test(){ Category cat1 = new ... .persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence
Issue
2

[ObjectDB 2.2.6_02] Unexpected exception (Error 990) at com.objectdb.o.OBC.aJ(OBC.java:961)

.EntityExistsException; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory ... .createEntityManagerFactory("ReproducePU"); }   public EntityManager getEntityManager ... ) { EntityManager em = getEntityManager(); try { return em.find(MomentEntity.class, id
Forum
2

Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne)

?   import javax.persistence.Basic; import javax.persistence.Entity; import javax.persistence.EntityManager ... ") }) public class Container { public static Container getInstance(EntityManager em) { Container c ... , EntityManager em) throws TestException { if (lastInstanceInMap == null
Forum
2

Entity listener - event instead of object

database. I can't find the nice way to use EntityManager in EntityListener. Because of that, I can't ... regarding the technical question. Do you need to obtain an EntityManager from a listener class? You may use the JDO getPersistenceManager method and cast the result to an EntityManager. I know
Forum
2

Filename.odb$ Persisting Issue

- Copy0.odb"); public  static EntityManager departmentDB = emf.createEntityManager(); public  static EntityManager employeeDB = emf.createEntityManager(); public  static EntityManager paygradeDB = emf.createEntityManager(); public  static EntityManager programDB = emf.createEntityManager