Project

General

Profile

« Previous | Next » 

Revision 9d61d919

Added by Cherian Mathew almost 9 years ago

CacheLoader : added strict check in recurive loop for same (not only equal) objects
EntityCacherDebugResult : removed deproxy of objects
ProxyUtils : refactoring
httpInvokerServiceClients.xml : corrected validation service class name
hibernate.cfg.xml, cdmTest.*.db : updated to latest

View differences:

eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/remoting/cache/EntityCacherDebugResult.java
351 351
            if(o != null) {
352 352

  
353 353
                if(o instanceof HibernateProxy) {
354
                    LazyInitializer hli = ((HibernateProxy)o).getHibernateLazyInitializer();
355
                    if(!hli.isUninitialized()) {
356
                        o = hli.getImplementation();
357
                    } else {
358
                        isHibernateProxy = true;
359
                    }
354
                    isHibernateProxy = true;
360 355
                }
361 356

  
362 357
                if(o instanceof PersistentCollection) {
363
                    PersistentCollection pc = ((PersistentCollection)o);
364
                    if(pc.wasInitialized()) {
365
                        o = ProxyUtils.getObject(pc);
366
                    } else {
367
                        isPersistentCollection = true;
368
                    }
358
                    isPersistentCollection = true;
369 359
                }
370 360
                childCei.setObject(o);
371 361
                childCei.setProxy(isHibernateProxy || isPersistentCollection);

Also available in: Unified diff