Internal Website Search
131-140 of 200 resultsRefreshMemory Leaks after COMMIT operation (checked on versions 2.6.5 & 2.6.6.b01).createEntityManagerFactory( "objectdb:" + aFilename ); m_EntityManager = m_EntityMgrFactory.createEntityManager(); m_EntityManager.setFlushMode( FlushModeType.COMMIT ); if ( m_EntityManager.isOpen() ) { m_EntityManager.getTransaction().begin(); for ( Pa3DataKey dataKey : aDataKeys | |
Weird behaviour with enhanced classes and embedded entities.Embeddable; import javax.persistence.Entity; import javax.persistence.EntityManager; import javax ... ; private static EntityManager entityManager; public static void main(String ... "); entityManager = entityManagerFactory.createEntityManager();   | |
Optimistic locking: prevent version increment on entity collection attribute> I am guessing this must be an issue with the EntityManager's life cycle but cannot figure out what. I am using Guice injection and Guice persist and should get one EntityManager per request ... ="pre-java"> public void test() { // em is the EntityManager   | |
Selective merge/cascade of detatched entity> EntityManager em = emf.getEntityManager(); em.getTransaction().begin ... way to achieve this? It might look something like: EntityManager em ... ("objectdb:/var/tmp/points.tmp;drop"); EntityManager e = emf.createEntityManager(); e.getTransaction | |
Memory consumption of empty Strings.createEntityManagerFactory("sscce.odb"); EntityManager entityManager = entityManagerFactory ... ; entities.add(entity); entityManager.getTransaction().begin(); entityManager.persist(entity);   | |
JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception.Stateless; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext ... connection: @PersistenceContext(unitName = "guest-pu") private EntityManager em;   ... java.util.List; import javax.ejb.Stateless; import javax.persistence.EntityManager; import javax | |
NamedNativeQuery.name/jpa/EntityManager" title="Interface in javax.persistence">EntityManager methods | |
Removing of an entity removes also another entity type and after that a ToleranceDefinition entity is removed from database by entitymanager.remove(obj). Directly ... / UPDATE database queries with EntityManager's operations is known as ... the EntityManager mechanism and therefore are very risky as the | |
Remove of an entry from a @OneToMany collection is not possible if the enhancer is disabled.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence ... /db/test.tmp;drop"); EntityManager entityManager = emf.createEntityManager(); ParentEntity parentEntity = new ParentEntity(); entityManager.getTransaction().begin();   | |
NullPointer when accessing entity field is accessed in one thread while the EntityManager is manipulated concurrently in another thread (e.g. transaction is committed or the EntityManager is closed). Is it possible that an EntityManager and/or its managed |