From 54e99e41aa1254d107b5678eb103db3a7eb60267 Mon Sep 17 00:00:00 2001 From: moparisthebest Date: Mon, 1 Jul 2019 10:51:09 -0400 Subject: [PATCH] Make sure EnsureContext is called before defaultInList is set up --- common/src/main/java/com/moparisthebest/jdbc/InList.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/src/main/java/com/moparisthebest/jdbc/InList.java b/common/src/main/java/com/moparisthebest/jdbc/InList.java index 655a7ef..cb27c76 100644 --- a/common/src/main/java/com/moparisthebest/jdbc/InList.java +++ b/common/src/main/java/com/moparisthebest/jdbc/InList.java @@ -1,6 +1,7 @@ package com.moparisthebest.jdbc; import com.moparisthebest.jdbc.codegen.JdbcMapper; +import com.moparisthebest.jdbc.codegen.JdbcMapperFactory; import com.moparisthebest.jdbc.util.Bindable; import com.moparisthebest.jdbc.util.InListUtil; @@ -72,6 +73,7 @@ public interface InList { private static InList getDefaultInListInstance() { try { + JdbcMapperFactory.connectionFactory(""); // need this so QueryMapper.ensureContext.class is called first in case it sets System properties used below final String inListClassName = System.getProperty("QueryMapper.defaultInList.class"); if(inListClassName != null) { final Class inListClass = Class.forName(inListClassName);