package utils;

import java.util.Map;
import java.util.HashMap;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.webdsl.lang.Environment;

import utils.TemplateServlet;

import java.io.*;

//dummy pageservlet instance for global init and global variables
//some expressions require this to be available, eg. property setters with extension events
@SuppressWarnings("unused")
public class GlobalsPageServlet extends PageServlet
{
    public GlobalsPageServlet(){}
    public void serve(HttpServletRequest request, HttpServletResponse response, Map<String, String> parammap, Map<String, List<String>> parammapvalues, Map<String, utils.File> fileUploads){}
    protected void renderDebugJsVar(java.io.PrintWriter sout){}
    protected boolean logSqlCheckAccess(){return false;}
    protected void initTemplateClass(){}
    protected void redirectHttpHttps(){}
    protected boolean isActionSubmit(){return false;}
    protected String[] getUsedSessionEntityJoins(){ return null; }
    protected void storeSessionEntities(){}
    protected org.webdsl.WebDSLEntity getRequestLogEntry(){return null;}
    protected void addPrincipalToRequestLog(org.webdsl.WebDSLEntity rle){}
    protected void addLogSqlToSessionMessages(){}
    public String getPageName(){return "";}
    public String getHiddenParams(){return "";}
    public String getHiddenPostParams(){return "";}
    public String getHiddenPostParamsJson(){return "";}
    protected void initialize(){}
    protected void conversion(){}
    protected void loadArguments(){}
    protected void initVarsAndArgs(){}
    public void initializeBasics(AbstractPageServlet ps, Object[] args){}
    public void serveAsAjaxResponse(AbstractPageServlet ps, Object[] ajaxarguments, TemplateCall templateArg){}
    public String getUniqueName(){ return "#### GlobalsPageServlet #### Should not call getUniqueName here."; }
    protected void increaseStatReadOnly() { }
    protected void increaseStatUpdate() { }
    protected void increaseStatActionFail() { }
    protected void increaseStatActionReadOnly() { }
    protected void increaseStatActionUpdate() { }
}

@@ -532,16 +532,91 @@
 rvlet()%7B
+%0A    %09hibernateSession = utils.HibernateUtil.getCurrentSession();    %09%0A    
 %7D%0A    pu

fix regression in query prefetch tests, hibernate session was not retrieved for the prefetch analysis