added call to remoting with correct check
[taxeditor.git] / eu.etaxonomy.taxeditor.cdmlib / src / main / java / org / hibernate / proxy / AbstractLazyInitializer.java
index 2881be5c3716bdbcc7cd597ef871207394a5e203..d40b90e8561ce82788b43d125f93841dd04f7760 100644 (file)
@@ -165,10 +165,11 @@ public abstract class AbstractLazyInitializer implements LazyInitializer {
 
        @Override
        public final void initialize() throws HibernateException {
-               // FIXME:Remoting is it true that session is null => we are in remoting mode
-//             if(session == null) {
-//                     remoteInitialize();
-//             }
+               // In remoting we are sure that session is null
+               // both when using property paths and switching off conversations
+               if(session == null) {
+                       remoteInitialize();
+               }
                if ( !initialized ) {
                        if ( specjLazyLoad ) {
                                specialSpecjInitialization();