About find

1-10 of 200Refresh
JPA Doc
57

find(entityClass, primaryKey)

Method javax.persistence.EntityManager T find(   Class 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
JPA Doc
57

find(entityClass, primaryKey, lockMode)

Method javax.persistence.EntityManager T find(   Class 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
JPA Doc
57

find(entityClass, primaryKey, lockMode, properties)

Method javax.persistence.EntityManager T find(   Class entityClass,   Object primaryKey,   LockModeType lockMode,   Map 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
JPA Doc
57

find(entityClass, primaryKey, lockMode, properties)

Method javax.persistence.EntityManager T find(   Class entityClass,   Object primaryKey,   LockModeType lockMode,   Map 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
JPA Doc
57

find(entityClass, primaryKey, properties)

Method javax.persistence.EntityManager T find(   Class entityClass,   Object primaryKey,   Map 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
Forum
22

find() cost unreasonable time!

, 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
Forum
20

Problem to use find method on an abstract Class: AbstractMethodError is thrown

use 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 ... -8080-1) JBAS014101: Failed to find SFSB instance with session ID {[-48, -118, 126, 59, 2, -122, 72
Issue
20

Blocked by find

"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
Forum
20

find() delay

(o); trans.commit();} 2, for 1 to 30 {p = em.find(typeC.class, i); print(p)} So simple a test ... cache? I'm not sure. But why the second find() will output? By the way, a query "select e from nodes e ... = em.find(typeC.class, i);  // this p will be null I'm doubting the example in jpab.jar runs twice
Issue
20

Unexpected exception (Error 990) on find

) at com.objectdb.jpa.EMImpl.find(EMImpl.java:591) at com.objectdb.jpa.EMImpl.find(EMImpl.java:514 ... $SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:240) at $Proxy33.find(Unknown Source) at local.jpa ... during find. What entity key type is used in that find? Is it String? What is the length of these strings