openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mingfai <>
Subject Re: how to run an readonly query that won't update the version field?
Date Wed, 03 Sep 2008 19:10:38 GMT
sorry guys. just found a relevant discussion.

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.


On Thu, Sep 4, 2008 at 2:51 AM, Mingfai <> 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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message