0 Replies Latest reply on Jun 23, 2008 9:25 PM by infinity2heaven

    Understanding <framework:hints>

    infinity2heaven

      What is the right usage for <framework:hints>? I've tried to use the below snippet for caching. I don't see any difference with it when seeing the results in Debug console or time taken for UI loading.



      <framework:entity-query name="fooQuery" ejbql="from Foo">
        <framework:hints>
            <key>org.hibernate.cacheable</key>
            <value>true</value>
        </framework:hints>
      </framework:entity-query>




      15:18:12,731 DEBUG [StandardQueryCache] checking cached query results in region: foo_ear,foo-ejbs_jar,asrDatasource.org.hibernate.cache.StandardQueryCache
      15:18:12,731 DEBUG [StandardQueryCache] Checking query spaces for up-to-dateness: [fofs]
      15:18:12,731 DEBUG [StandardQueryCache] returning cached query results



      Any ideas?