|
@@ -28,6 +28,7 @@ import org.apache.ibatis.mapping.ResultFlag;
|
|
|
import org.apache.ibatis.mapping.ResultMap;
|
|
|
import org.apache.ibatis.mapping.ResultMapping;
|
|
|
import org.apache.ibatis.reflection.Reflector;
|
|
|
+import org.apache.ibatis.reflection.SystemMetaObject;
|
|
|
import org.apache.ibatis.session.Configuration;
|
|
|
|
|
|
import java.lang.reflect.Constructor;
|
|
@@ -46,7 +47,6 @@ import static java.util.stream.Collectors.joining;
|
|
|
@Data
|
|
|
@Setter(AccessLevel.PACKAGE)
|
|
|
@Accessors(chain = true)
|
|
|
-@SuppressWarnings("serial")
|
|
|
public class TableInfo implements Constants {
|
|
|
|
|
|
/**
|
|
@@ -189,6 +189,7 @@ public class TableInfo implements Constants {
|
|
|
@Deprecated
|
|
|
public TableInfo(Class<?> entityType) {
|
|
|
this.entityType = entityType;
|
|
|
+ this.reflector = SystemMetaObject.NULL_META_OBJECT.getReflectorFactory().findForClass(entityType);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -224,6 +225,7 @@ public class TableInfo implements Constants {
|
|
|
Assert.notNull(configuration, "Error: You need Initialize MybatisConfiguration !");
|
|
|
this.configuration = configuration;
|
|
|
this.underCamel = configuration.isMapUnderscoreToCamelCase();
|
|
|
+ this.reflector = configuration.getReflectorFactory().findForClass(this.entityType);
|
|
|
}
|
|
|
|
|
|
/**
|