/** * Get the default {@code QueryCache}. * * @deprecated Use {@link #getDefaultQueryResultsCache} instead. */ @Deprecated default QueryCache getQueryCache() { return getDefaultQueryResultsCache(); }
/** * Get the default {@code QueryCache}. * * @deprecated Use {@link #getDefaultQueryResultsCache} instead. */ @Deprecated default QueryCache getDefaultQueryCache() { return getDefaultQueryResultsCache(); }
/** * Clean up the default query cache */ default void evictQueries() throws HibernateException { QueryResultsCache cache = getDefaultQueryResultsCache(); if ( cache != null ) { cache.clear(); } }