122 | , why? Result: =========== find time @ 24.125000 getSons time @ 0.000000 1 : type:Nodes, sons:2 child : 2 child : 3 Iterator time @ 0.000000 find time @ 0.000000 getSons time @ 0.000000 2 : type:Nodes, sons:2 child : 4 child : 5 Iterator time @ 0.000000 find time @ 0.000000 getSons |
114 | find method mentioning SentenceStatement everything works just fine but when I use this method ... for a better ease this is the stack trace when I try to find LogicalObject: 08:17:21,359 INFO [org ... ) JBAS014101: Failed to find SFSB instance with session ID {[-48, -118, 126, 59, 2, -122, 72, 57, -75 |
111 | (o); trans.commit();} 2, for 1 to 30 {p = em.find(typeC.class, i); print(p)} So simple a test ... is enabled. support Support L2 cache? I'm not sure. But why the second find() will output? By the way ... .getResultList(); // this works 3. typeC p = em.find(typeC.class, i); // this p will be null I'm doubting |
64 | Method javax.persistence.EntityManager T find( Class<T> entityClass, Object primaryKey ) Find by primary key. Search for an entity of the specified class and primary key. If the entity instance is contained in the persistence context, it is returned from there. Parameters: entityClass - entity |
64 | Method javax.persistence.EntityManager T find( Class<T> entityClass, Object primaryKey, LockModeType lockMode, Map<K,V> properties ) Find by primary key and lock, using the specified properties. Search for an entity of the specified class and primary key and lock it with respect to the specified |
64 | Method javax.persistence.EntityManager T find( Class<T> entityClass, Object primaryKey, LockModeType lockMode ) Find by primary key and lock. Search for an entity of the specified class and primary key and lock it with respect to the specified lock type. If the entity instance is contained in |
64 | Method javax.persistence.EntityManager T find( Class<T> entityClass, Object primaryKey, LockModeType lockMode, Map<String,Object> properties ) Find by primary key and lock, using the specified properties. Search for an entity of the specified class and primary key and lock it with respect |
64 | Method javax.persistence.EntityManager T find( Class<T> entityClass, Object primaryKey, Map<String,Object> properties ) Find by primary key, using the specified properties. Search for an entity of the specified class and primary key. If the entity instance is contained in the persistence context |
22 | "find" method. If nothing is returned from the db the passed object is persisted to the db. I have 5 ... somewhere in the find. The thread dump looks like: Name: DEV1-WSAgent-1-Existing/3 State: RUNNABLE Total ... .find(EMImpl.java:551) - locked com.objectdb.jdo.PMImpl@ae89a com.objectdb.jpa.EMImpl.find |
6 | Method javax.persistence.EntityManager T find( Class<T> entityClass, Object primaryKey, LockModeType lockMode, Map<K,V> properties ) Find by primary key and lock, using the specified properties. Search for an entity of the specified class and primary key and lock it with respect to the specified |