title: Disabling EclipseLink cache
body: <p>In my application, when user logs in to the system the system reads some setting from DB and stores them on user's session. The system is performing this action by a JPA query using EclipseLink (JPA 2.0).  </p>
  
  <p>When I change some settings in DB, and sign in again, the query returns the previous results. It seems that EclipseLink is caching the results.</p>
  
  <p>I have used this to correct this behavior but <strong>it does not work</strong>:</p>
  
  <pre><code>query.setHint(QueryHints.cache_usage,cacheUsage.no_cache);
  </code></pre>