removing Transient annotation - not required
authorCherian Mathew <c.mathew@bgbm.org>
Wed, 12 Feb 2014 14:25:59 +0000 (14:25 +0000)
committerCherian Mathew <c.mathew@bgbm.org>
Wed, 12 Feb 2014 14:25:59 +0000 (14:25 +0000)
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/cdm/api/lazyloading/CdmLazyLoader.java

index 512bd0f14e5ed5dc474d02c072fe237e77c21883..60e55d7db9a1b7c878af4a100be22946d00bdb33 100644 (file)
@@ -1,9 +1,7 @@
 package eu.etaxonomy.cdm.api.lazyloading;
 
-import java.beans.Transient;
 import java.lang.reflect.Field;
 import java.util.ArrayList;
-import java.util.Collection;
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.List;
@@ -28,7 +26,6 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Configurable;
 import org.springframework.stereotype.Component;
 
-import eu.etaxonomy.cdm.api.application.ICdmApplicationConfiguration;
 import eu.etaxonomy.cdm.api.service.ICommonService;
 import eu.etaxonomy.cdm.model.common.CdmBase;
 import eu.etaxonomy.cdm.model.common.PersistentMultiLanguageText;
@@ -97,8 +94,7 @@ public class CdmLazyLoader {
         *  'Around' advice for the initialization of Collection objects
         *  
         */
-       @Around(value = "possibleCollectionLazyInitializationException()")
-       @Transient
+       @Around(value = "possibleCollectionLazyInitializationException()")      
        public Object preloadCollectionOnDemand(ProceedingJoinPoint pjp) throws Throwable {              
                if(enableWeaving) {
                        PersistentCollection ps = (PersistentCollection) pjp.getTarget();