diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/trservice/ColumnDataTypeMap.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/trservice/ColumnDataTypeMap.java index 5e20ad6..fc5b397 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/trservice/ColumnDataTypeMap.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/trservice/ColumnDataTypeMap.java @@ -1,6 +1,7 @@ package org.gcube.portlets.user.td.gwtservice.server.trservice; import org.gcube.data.analysis.tabulardata.model.datatype.BooleanType; import org.gcube.data.analysis.tabulardata.model.datatype.DataType; +import org.gcube.data.analysis.tabulardata.model.datatype.DateType; import org.gcube.data.analysis.tabulardata.model.datatype.GeometryType; import org.gcube.data.analysis.tabulardata.model.datatype.IntegerType; import org.gcube.data.analysis.tabulardata.model.datatype.NumericType; @@ -32,7 +33,11 @@ public class ColumnDataTypeMap { if(columnDataType==ColumnDataType.Text){ return new TextType(); } else { - return null; + if(columnDataType==ColumnDataType.Date){ + return new DateType(); + } else { + return null; + } } } }