Hi I am trying to migrate Hibernate 3.6.1 to 5 and I can't find any guide where org.hibernate.cache.Cache were moved to.. ? In 3.6.1 it was in hibernate-core jar and in 5 it is not found in this package..
Code:
error: cannot find symbol
[ERROR] symbol: class Cache
[ERROR] location: package org.hibernate.cache
Below is how I use org.hibernate.cache.Cache (just a snippet to show what I must rewrite or remove from project):
Code:
protected Cache getCache(final String name) {
if (!TransactionSynchronizationManager.isSynchronizationActive())
return null;
final String cacheKey = getCacheKey(name);
Cache cache = (Cache) TransactionSynchronizationManager.getResource(cacheKey);
if (cache == null) {
cache = new HashtableCache(cacheKey);
TransactionSynchronizationManager.bindResource(cacheKey, cache);
TransactionSynchronizationManager.registerSynchronization(new TransactionSynchronizationAdapter() {
private Object suspended = null;
private boolean beforeCompletionInvoked = false;