All,

 

 

Here is my code

 

// Criterias...

Criteria crit = new Criteria();

crit.addEqualTo(Alt_log.LOG_ID_PK,"Essai" );

Query q = QueryFactory.newQuery(Alt_log.class, crit);

              

// Start the Db transaction

broker.beginTransaction();

 

altLogEdited  = (IAlt_log)broker.getObjectByQuery(q);

tx.lock(altLogEdited, JwtTransaction.READ);

 

altLogEdited  = (IAlt_log)broker.getObjectByQuery(q);


 

// Release the db connection to PoolConnection manager....

broker.commitTransaction();

              

tx.commit();

 

 

 

The getObjectByQuery method execute on the both calls a Select in the
Database.

 

I don't put "true" in the class_descriptor "refresh" option

 

For me, OJB should'nt look to the database on the second call ...isn't it
????

 

 

Tx !

 

Reply via email to