This is an automated email from the ASF dual-hosted git repository.

critas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb-extras.git


The following commit(s) were added to refs/heads/master by this push:
     new f8c9de8  format time type to long (#79)
f8c9de8 is described below

commit f8c9de82538847f8682fda92ff4d98e3580e6787
Author: Summer <[email protected]>
AuthorDate: Mon Jun 9 10:04:13 2025 +0800

    format time type to long (#79)
    
    Co-authored-by: 2b3c511 <[email protected]>
---
 .../iotdb/mybatis/plugin/generator/resolver/IoTDBJavaTypeResolver.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/mybatis-generator/src/main/java/org/apache/iotdb/mybatis/plugin/generator/resolver/IoTDBJavaTypeResolver.java
 
b/mybatis-generator/src/main/java/org/apache/iotdb/mybatis/plugin/generator/resolver/IoTDBJavaTypeResolver.java
index 3aefc81..646d722 100644
--- 
a/mybatis-generator/src/main/java/org/apache/iotdb/mybatis/plugin/generator/resolver/IoTDBJavaTypeResolver.java
+++ 
b/mybatis-generator/src/main/java/org/apache/iotdb/mybatis/plugin/generator/resolver/IoTDBJavaTypeResolver.java
@@ -31,6 +31,9 @@ public class IoTDBJavaTypeResolver extends 
JavaTypeResolverDefaultImpl {
   public IoTDBJavaTypeResolver() {
     super();
     typeExtMap = new HashMap<>();
+    super.typeMap.put(
+        Types.TIMESTAMP,
+        new JdbcTypeInformation("TIMESTAMP", new 
FullyQualifiedJavaType(Long.class.getName())));
     initTypeSet();
   }
 

Reply via email to