About EntityManager

181-190 of 200Refresh
Issue
1

stress test -> com.objectdb.o.InternalException: null

that closed the EntityManager and moved its connection to the pool. Then to ObjectDB (on the just closed EntityManager) that had to commit changes using the connection (which has already been moved ... ");                 EntityManager em1 = emf.createEntityManager();         em1.getTransaction().begin();         em1.persist
Forum
1

Transaction isolation support?

when the fetch start? Martin   Every EntityManager manages its own memory objects (which represent database objects). Therefore, if an entity object is retrieved by one EntityManager and then updated in the database by another EntityManager, the first EntityManager may still have an old version of that entity
Forum
1

Type xxx is not found (error 301)

JPA application by obtaining PersistenceManager from your EntityManager:     em.unwrap ... ), so, what would the object be? oddly, I don't have an unwrap() method on my EntityManager?? also, I don't have a query (String, Class) method on my EntityManager > 3) use jdo from jpa - is there a performance penalty
Forum
1

Unexpected behaviour upon update. Bug?

=             Persistence.createEntityManagerFactory("ODB.odb"); EntityManager em = emf.createEntityManager ... the EntityManager as a managed entity object and it is returned with the update from the query. Changes in one EntityManager instance are invisible in other EntityManager instances until commit, but visible
Issue
1

Feature suggestion: auto-detection of entities via persistence.xml extension

I am encountering problems (complexities) with EntityManager registration of entities ... system: hibernate.archive.autodetection https://docs.jboss.org/hibernate/entitymanager/3.6/reference/en ... to the EntityManager whether one performs compile-time enhancement or runtime enhancement ? That is, does
Forum
1

Update more than 10000 entities by an update query fails

"); EntityManager emOne = emf.createEntityManager(); emOne.getTransaction().begin ... ); } emOne.getTransaction().commit(); emOne.close(); EntityManager ... (); emTwo.close(); EntityManager emThree = emf.createEntityManager(); emThree
Forum
1

Database is erased after deploying a new web application version

from Tomcat's manager? When should I use the close method of EntityManagerFactory and EntityManager ... of EntityManagerFactory and EntityManager? You can close the EntityManagerFactory when the web application is closed (see this example). Usually EntityManager instances are created and closed
Forum
1

EntityTransaction.commit() does not release a pessimistic lock

.createEntityManagerFactory("accounts.odb"); EntityManager em = emf.createEntityManager(); em ... (); // update EntityManager em1 = emf.createEntityManager(); em1.getTransaction().begin ... // try to retrieve again EntityManager em2 = emf.createEntityManager(); em2
Forum
1

"Attempt to lock a non entity object" error

once per EntityManager. I've downloaded the new build and tried the code above that uses a JDO Transaction ... .Entity; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory ... \\workspace\\TestProject\\Storage.odb");         EntityManager em = emf.createEntityManager
Forum
1

Criteria query error: Unexpected query token

= entityManager.getCriteriaBuilder(); CriteriaQuery c = qb.createQuery(aClass); c.from(aClass); return entityManager.createQuery(c).getResultList(); }   Entities ... ) {      CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();      CriteriaQuery q