Project

General

Profile

« Previous | Next » 

Revision 337563aa

Added by Andreas Müller over 6 years ago

cleanup

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/initializer/AdvancedBeanInitializer.java
31 31
import org.hibernate.proxy.HibernateProxy;
32 32
import org.springframework.beans.factory.annotation.Autowired;
33 33

  
34
import sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl;
35 34
import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper;
36 35
import eu.etaxonomy.cdm.model.common.CdmBase;
37 36
import eu.etaxonomy.cdm.persistence.dao.common.ICdmGenericDao;
38 37
import eu.etaxonomy.cdm.persistence.dao.hibernate.HibernateBeanInitializer;
38
import sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl;
39 39

  
40 40
/**
41 41
 * For now this is a test if we can improve performance for bean initializing
......
336 336
            //TODO check if other code works with audited data at all as we use HQL queries
337 337
            if (!node.hasWildcardToManySibling()){  //if wildcard sibling exists the lazies are already prepared there
338 338
                Collection<?> collection = (Collection<?>)propertyValue;
339
                //TODO it is difficult to find out if an envers collection is initiallized
340
                //but possiblie via reflection. If the "delegate" parameter is null it is not yet initialized.
339
                //TODO it is difficult to find out if an envers collection is initialized
340
                //but possibly via reflection. If the "delegate" parameter is null it is not yet initialized.
341 341
                //However, as we do not know if envers initialization works at all together with the AdvancedBeanInitializer
342 342
                //we initialize each collection immediately here by calling size()
343 343
                collection.size();  //initialize

Also available in: Unified diff