Home » Search

About EntityManager

121-130 of 200Refresh
Forum
3

Selective merge/cascade of detatched entity

to: EntityManager em = emf.getEntityManager(); em.getTransaction().begin(); Company company = new Company("new ... : EntityManager em = emf.getEntityManager(); em.getTransaction().begin(); Company company = new Company("new ... .tmp;drop"); EntityManager e = emf.createEntityManager(); e.getTransaction().begin(); Company
Forum
2

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

java.util.List; import javax.ejb.Stateless; import javax.persistence.EntityManager; import javax ... ") private EntityManager em;     // Stores a new guest     public void persist(final Guest guest ... .Stateless; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext
Forum
2

Memory consumption of empty Strings

.odb");     EntityManager entityManager = entityManagerFactory.createEntityManager ... );       entityManager.getTransaction().begin();       entityManager.persist(entity);       entityManager.getTransaction().commit();       entityManager.clear();     }     entityManager.close
Forum
2

Should derived fields of an EmbeddedId be manually maintained by app code?

.Entity; import javax.persistence.EntityManager; import javax.persistence.FlushModeType; import ... static EContainer getInstance(EntityManager em) { EContainer c = em.find(EContainer.class, "1 ... , EntityManager em) throws TestException { if (lastInstanceInMap == null) { lastInstanceInMap = 0
JPA Doc
2

createEntityManagerFactory(persistenceUnitName)

EntityManagers configured according to the specified persistence unit Since: JPA 1.0
JPA Doc
2

createEntityManagerFactory(persistenceUnitName, properties)

that creates EntityManagers configured according to the specified persistence unit. Since: JPA 1.0
Forum
2

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
2

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
2

javax.persistence.LockModeType

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

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