添加类型映射

This commit is contained in:
makejava 2018-09-04 18:12:15 +08:00
parent 98f4fb98c2
commit a9ce35251b
1 changed files with 1 additions and 0 deletions

View File

@ -123,6 +123,7 @@ public class Settings implements PersistentStateComponent<Settings> {
TypeMapperGroup typeMapperGroup = new TypeMapperGroup(); TypeMapperGroup typeMapperGroup = new TypeMapperGroup();
List<TypeMapper> typeMapperList = new ArrayList<>(); List<TypeMapper> typeMapperList = new ArrayList<>();
typeMapperList.add(new TypeMapper("varchar(\\(\\d+\\))?", "java.lang.String")); typeMapperList.add(new TypeMapper("varchar(\\(\\d+\\))?", "java.lang.String"));
typeMapperList.add(new TypeMapper("char(\\(\\d+\\))?", "java.lang.String"));
typeMapperList.add(new TypeMapper("text", "java.lang.String")); typeMapperList.add(new TypeMapper("text", "java.lang.String"));
typeMapperList.add(new TypeMapper("decimal(\\(\\d+\\))?", "java.lang.Double")); typeMapperList.add(new TypeMapper("decimal(\\(\\d+\\))?", "java.lang.Double"));
typeMapperList.add(new TypeMapper("integer", "java.lang.Integer")); typeMapperList.add(new TypeMapper("integer", "java.lang.Integer"));