public static void configure(Configuration hibernateConfig) {
Iterator classMappings = hibernateConfig.getClassMappings();
try {
while (classMappings.hasNext()) {
PersistentClass persistentClass = (PersistentClass)classMappings.next();
configureClassCache(persistentClass.getMappedClass());
}
configureClassCache(QueryCache.class);
configureClassCache(UpdateTimestampsCache.class);
} catch (Exception e) {
log.error("error", e);