You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.8 KiB
XML

<?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">
<generatorConfiguration>
<classPathEntry
location="C:\Users\xin.huang\.m2\repository\org\xerial\sqlite-jdbc\3.21.0.1\sqlite-jdbc-3.21.0.1.jar"/>
<!-- <classPathEntry-->
<!-- location="/Users/jason/.m2/repository/org/xerial/sqlite-jdbc/3.28.0/sqlite-jdbc-3.28.0.jar"/>-->
<context id="sqlite" targetRuntime="MyBatis3Simple" defaultModelType="flat">
<property name="beginningDelimiter" value="`"/>
<property name="endingDelimiter" value="`"/>
<!-- <plugin type="tk.mybatis.mapper.generator.MapperPlugin">-->
<!-- <property name="mappers" value="com.jingcheng.cms.util.CommonMapper"/>-->
<!-- </plugin>-->
<jdbcConnection driverClass="org.sqlite.JDBC"
connectionURL="jdbc:sqlite:Sqlitedb/training.db"
userId="root"
password="123456">
</jdbcConnection>
<javaModelGenerator targetPackage="com.jingcheng.cms.model" targetProject="src/main/java"/>
<!-- <sqlMapGenerator targetPackage="mapper" targetProject="src/main/resources"/>-->
<!-- <javaClientGenerator targetPackage="com.jingcheng.cms.mapper" targetProject="src/main/java"-->
<!-- type="XMLMAPPER"/>-->
<table tableName="%">
<!--mysql 配置-->
<generatedKey column="id" sqlStatement="Mysql" identity="true"/>
<!--oracle 配置-->
<!--<generatedKey column="id" sqlStatement="select SEQ_{1}.nextval from dual" identity="false" type="pre"/>-->
</table>
</context>
</generatorConfiguration>