OpenJPA - not clearing before requests

how can i set openjpa to clean up before request. When I change some values ​​in the database, I want to propagate those changes to the application.

I've tried these settings in persistence.xml file:

<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 to

+2


a source to share


1 answer


calling refresh () on an object inside trasaction does the trick :)



+1


a source







All Articles