|
| 1 | +<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd"> |
| 2 | + |
| 3 | +<!-- |
| 4 | +
|
| 5 | + Licensed to the Apache Software Foundation (ASF) under one or more |
| 6 | +
|
| 7 | + contributor license agreements. See the NOTICE file distributed with |
| 8 | + this work for additional information regarding copyright ownership. |
| 9 | + The ASF licenses this file to You under the Apache License, Version 2.0 |
| 10 | +
|
| 11 | + (the "License"); you may not use this file except in compliance with |
| 12 | +
|
| 13 | + the License. You may obtain a copy of the License at |
| 14 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 15 | + Unless required by applicable law or agreed to in writing, software |
| 16 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 17 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 18 | +
|
| 19 | +--> |
| 20 | +<generatorConfiguration> |
| 21 | + <classPathEntry location="/apache/iotdb/iotdb-client/jdbc/target/iotdb-jdbc-2.0.2-SNAPSHOT-jar-with-dependencies.jar"/> |
| 22 | + <!-- mvn mybatis-generator:generate hierarchical/flat--> |
| 23 | + <context id="mybatis3" targetRuntime="Mybatis3" defaultModelType="flat"> |
| 24 | + <!-- <property name="suppressAllComments" value="true"/>--> |
| 25 | + <!-- <property name="useActualColumnNames" value="false"/>--> |
| 26 | + <!-- <property name="javaFormatter" value="org.mybatis.generator.api.dom.DefaultJavaFormatter"/>--> |
| 27 | + <!-- <property name="xmlFormatter" value="org.mybatis.generator.api.dom.DefaultXmlFormatter"/>--> |
| 28 | + <plugin type="org.apache.iotdb.mybatis.plugin.LombokPlugin"/> |
| 29 | + <plugin type="org.apache.iotdb.mybatis.plugin.BatchInsertPlugin"/> |
| 30 | + <!-- <plugin type="org.apache.iotdb.mybatis.plugin.SerializablePlugin"/>--> |
| 31 | + <plugin type="org.mybatis.generator.plugins.VirtualPrimaryKeyPlugin"/> |
| 32 | + <!-- <commentGenerator type="generator.org.apache.iotdb.mybatis.plugin.CNCommentGenerator">--> |
| 33 | + <!-- <property name="suppressAllComments" value="true"/>--> |
| 34 | + <!-- </commentGenerator>--> |
| 35 | + <commentGenerator type="org.apache.iotdb.mybatis.plugin.generator.SwaggerCommentGenerator"> |
| 36 | + <property name="suppressAllComments" value="true"/> |
| 37 | + <property name="suppressDate" value="true"/> |
| 38 | + <property name="addRemarkComments" value="true"/> |
| 39 | + </commentGenerator> |
| 40 | + <jdbcConnection driverClass="org.apache.iotdb.jdbc.IoTDBDriver" connectionURL="jdbc:iotdb://127.0.0.1:6667/test?sql_dialect=table" userId="root" password="root"/> |
| 41 | + <javaTypeResolver type="org.apache.iotdb.mybatis.plugin.generator.resolver.IoTDBJavaTypeResolver"> |
| 42 | + <property name="forceBigDecimals" value="false"/> |
| 43 | + </javaTypeResolver> |
| 44 | + <javaModelGenerator targetPackage="org.apache.iotdb.mybatis.plugin.model" targetProject="src/main/java"> |
| 45 | + <!-- <property name="enableSubPackages" value="true"/>--> |
| 46 | + <property name="trimStrings" value="true"/> |
| 47 | + </javaModelGenerator> |
| 48 | + <sqlMapGenerator targetPackage="org.apache.iotdb.mybatis.plugin.xml" targetProject="src/main/java"> |
| 49 | + <!-- <property name="enableSubPackages" value="true"/>--> |
| 50 | + </sqlMapGenerator> |
| 51 | + <javaClientGenerator type="XMLMAPPER" targetPackage="org.apache.iotdb.mybatis.plugin.mapper" targetProject="src/main/java"> |
| 52 | + <!-- <property name="enableSubPackages" value="true"/>--> |
| 53 | + </javaClientGenerator> |
| 54 | + <table schema="test" tableName="mix" domainObjectName="Mix" enableSelectByPrimaryKey="true" enableInsert="true" enableDeleteByPrimaryKey="true" enableUpdateByPrimaryKey="false" enableSelectByExample="true"> |
| 55 | + <property name="virtualKeyColumns" value="time,device_id,device_name,device_tag"/> |
| 56 | + </table> |
| 57 | + </context> |
| 58 | +</generatorConfiguration> |
0 commit comments