- Common ways to obtain Settings
private void myMethod () {Settings s =
new Settings()
SessionFactoryImplementor sessionFactoryImplementor;sessionFactoryImplementor.getSettings()
UnionSubclassEntityPersister unionSubclassEntityPersister;unionSubclassEntityPersister.getFactory().getSettings()
- Smart code suggestions by Codota
}
settings.setQueryCacheEnabled(useQueryCache);
settings.setQueryCacheEnabled(useQueryCache);
LOG.debugf( "Query cache: %s", enabledDisabled(useQueryCache) ); settings.setQueryCacheEnabled( useQueryCache ); if (useQueryCache) { settings.setQueryCacheFactory( createQueryCacheFactory( properties, serviceRegistry ) );
LOG.debugf( "Query cache: %s", enabledDisabled(useQueryCache) ); settings.setQueryCacheEnabled( useQueryCache ); if (useQueryCache) { settings.setQueryCacheFactory( createQueryCacheFactory( properties, serviceRegistry ) );