entitymanager refresh & j2se
I have a j2se application.
For running copy #1 - I change data in one screen and use entitymanager merge, flush and refresh. The data then updates nicely in other screens.
This all works well for the one entity manager.
I have used one entity manager per j2se app.
However, as it's a j2se application. Two people can run their own copy. With 2 copies open (each own entitymanager).
Sequence of events
- data has been queried in running copy #1
- data queried, and changes are made in running copy #2.
- requery for app copy #1, No changes show !
Any idea's on how I can fix this ?
The data is obviously cached. Requery time is very fast !
Can I turn off the cache ? (and how would I do it?)