sorry guys. just found a relevant discussion. http://www.mail-archive.com/[email protected]/msg02112.html
it seems my problem is caused as i'm not using neither build-time or runtime enhancement (javaagent) . I tried to use spring-agent to do the weaving before but not too successful. Looks like I have to spend some more time to check about weaving/enhancement . Thanks. regards, mingfai On Thu, Sep 4, 2008 at 2:51 AM, Mingfai <[EMAIL PROTECTED]> wrote: > hi, > it seems, following every query that is in a transaction, OpenJPA > automatically issue a UPDATE statement to update the version field. (i read > from the log file) Is there any way to avoid sending the UPDATE statement > for read only query? is the issue related to Lock Manager? > > the following are tried: > > - if the query is not in transaction, there won't be an automatic > update statement. > - Setting the readLockMode of the query fetchplan cannot disable the > version update. (well... not sure if it's relevant. i just give it a try) > > > Thank you very much. > > Regards, > mingfai >
