Internal Website Search

191-200 of 200 resultsRefresh

Left join fetch behaviour doesn't retrieve children?

; import javax.persistence.Entity; import javax.persistence.EntityManager; import javax ... ; EntityManager em = null ;         // Merge parent1     ... , if done before closing the EntityManager) but not that the relationship is activated. The unit tests

Problem undeploying Glassfish3.1.1 web application cleanly

when using @PersistenceContext EntityManager injection, using the undeploy feature under the Glassfish ... EntityManager injection)? support Support > Is it possible to get this exception with the simple tutorial GuestBook example (which also uses @PersistenceContext EntityManager

problem with lazy loading - unittest project attached

">@Transactional - an ad hoc EntityManager instance is prepared for running ... ">EntityManager is closed and the result object becomes detached. entityManager.getTransaction().begin()/commit() and i also can not set

Does ObjectDB support lazy loading?

in the list. However, when the Parent object is read from EntityManager, all the properties except ID of the Child objects are null. The EntityManager is not yet closed when the getters are called.EntityManager em = emf.createEntityManager(); em.getTransaction().begin(); A a = new

ObjectDB within a resource adapter module and Java EE Connector Architecture

> @PersistenceContext private EntityManager em; The 2 web ... /questions/8784302/dynamic-persistencecontext-unitname-attribute-for-container-based-entitymanager">https ... -entitymanager

Possible issue with LAZY Loading

are managed by an open EntityManager, but it is fetched lazily when needed. You do see a difference (in addition to performance differences) when the EntityManager is closed or results ... Support Ok, so then I believe Lazy loading is broken, cause if I close the entityManager

"Attempt to lock a non entity object" error

">setRetainValues once per EntityManager. support Support I've ... .persistence.Entity; import javax.persistence.EntityManager; import javax.persistence ... ;  EntityManager em = emf.createEntityManager();        

Unable to persist TreeMap

; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax ... ; EntityManager em = emf.createEntityManager();          ... > import java.util.Map; import javax.persistence.EntityManager; import javax.persistence

find() delay

="code">EntityManager instances are used and the L2 cache is enabled. support Support ... ;       EntityManager em = emf.createEntityManager();     ... .createEntityManagerFactory("$objectdb/db/test.odb");   EntityManager em = emf.createEntityManager();  

combined index not used

"); EntityManager em = emf.createEntityManager(); Thread thread = em ... ;            entityManager = entityManagerFactoryentityManager.createQuery("objectdb statistics", Thread.class