OpenJPA - not flushing before queries

Posted by Ales on Stack Overflow See other posts from Stack Overflow or by Ales
Published on 2010-04-22T10:03:00Z Indexed on 2010/05/05 21:18 UTC
Read the original article Hit count: 371

Filed under:
|
|

hi all,

how can i set openjpa to flush before query. When i change some values in database i want to propagate these changes into application.

I tried this settings in persistence.xml:

<property name="openjpa.FlushBeforeQueries" value="true" />
<property name="openjpa.IgnoreChanges" value="false"/> false/true - same behavior to my case
<property name="openjpa.DataCache" value="false"/>
<property name="openjpa.RemoteCommitProvider" value="sjvm"/>
<property name="openjpa.ConnectionRetainMode" value="always"/>
<property name="openjpa.QueryCache" value="false"/>

Any idea? Thanks

© Stack Overflow or respective owner

Related posts about openjpa

Related posts about persistence