Internal Website Search
141-150 of 200 resultsRefreshShould derived fields of an EmbeddedId be manually maintained by app code? javax.persistence.Basic; import javax.persistence.Entity; import javax.persistence.EntityManager ... = :container") }) public class EContainer { public static EContainer getInstance(EntityManager em ... generateMapItems(Integer numberToGen, boolean subItems, EntityManager em) throws TestException | |
Insertion Speed Rate and Batch Load Leak thread uses a separate transaction, and moreover, a new EntityManager per stored entity object. A batch load should reuse the EntityManager ... ; EntityManager em = emf.createEntityManager();   | |
Persist error @ManyToMany how to define correct entities relationships (possibly using EntityManager/getReference_Class__Object">em ... javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax ... ; EntityManager em; void test(){ Category cat1 = new Category(1 | |
Remove an entity which attributes were changed - OptimisticLockException">EntityManagerFactory / EntityManager instances, i.e ... ="code">EntityManager (not just the same EntityManagerFactoryEntityManager | |
ODB IndexActivation NullPointerException, we get sporadic problems if we connected to an existing Database and create an EntityManager. 1 ... the creation of EntityManagerFactory or of EntityManager? Is it possible to ask ... > We think a workarround (but not usefull) is to create a entityManager - close it - and wait | |
Missing (null) elements in eager loaded references (all of them)? Does it happen when the EntityManager is open or closed?EntityManager) then anything that has not been already loaded would be missing.EntityManager | |
Memory Leak in EntityManagerFactory ?. After runnings some automatic tests for ca. 1 h all EntityManagers are closed and removed from memory (checked ... :#2980b9;">236 Copies of those entitities in the memory (after closing all EntityManagers ... ="code">EntityManager in the connection pool of a live E | |
createEntityManagerFactory(persistenceUnitName, properties)> the factory that creates EntityManagers configured according to the specified persistence unit | |
createEntityManagerFactory(persistenceUnitName): the factory that creates EntityManagers configured according | |
Best practise loading big data class="pre-java"> MyStepBlockCollection sbc = entityManager.find(id); for (MyStepBlock sb : sbc ... = entityManager.find(id); for (MyStepBlock sb : sbc.stepBlocks) { for (MyStep s : sb.steps ... ; import javax.persistence.Entity; import javax.persistence.EntityManager; import javax.persistence |