generatorConfig.xml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE generatorConfiguration
  3. PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
  4. "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
  5. <generatorConfiguration>
  6. <properties resource="config.properties"/>
  7. <context id="Mysql" targetRuntime="MyBatis3Simple" defaultModelType="flat">
  8. <property name="beginningDelimiter" value="`"/>
  9. <property name="endingDelimiter" value="`"/>
  10. <plugin type="${mapper.plugin}">
  11. <property name="mappers" value="${mapper.Mapper}"/>
  12. </plugin>
  13. <jdbcConnection driverClass="${jdbc.driverClass}"
  14. connectionURL="${jdbc.url}"
  15. userId="${jdbc.user}"
  16. password="${jdbc.password}">
  17. </jdbcConnection>
  18. <javaModelGenerator targetPackage="${targetModelPackage}" targetProject="${targetJavaProject}"/>
  19. <sqlMapGenerator targetPackage="${targetXMLPackage}" targetProject="${targetResourcesProject}"/>
  20. <javaClientGenerator targetPackage="${targetMapperPackage}" targetProject="${targetJavaProject}" type="XMLMAPPER" />
  21. <table tableName="%" >
  22. <generatedKey column="id" sqlStatement="Mysql" identity="true"/>
  23. </table>
  24. </context>
  25. </generatorConfiguration>