zno2

MBG 配置文件各个元素及属性

http://www.mybatis.org/generator/configreference/xmlconfig.html

配置文件都能做什么

是否生成注释

注释是否带时间

是否强制使用BigDecimals

是否使用数据库的schema 来生成包

 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE generatorConfiguration SYSTEM "mybatis-generator-config_1_0.dtd" >
<generatorConfiguration>
  <properties resource="" url=""/>
  <classPathEntry location=""/>
  <context defaultModelType="" id="idvalue0" introspectedColumnImpl="" targetRuntime="">
    <property name="" value=""/>
    <plugin type="">
      <property name="" value=""/>
    </plugin>
    <commentGenerator type="">
      <property name="" value=""/>
    </commentGenerator>
    <connectionFactory type="">
      <property name="" value=""/>
    </connectionFactory>
    <javaTypeResolver type="">
      <property name="" value=""/>
    </javaTypeResolver>
    <javaModelGenerator targetPackage="" targetProject="">
      <property name="" value=""/>
    </javaModelGenerator>
    <sqlMapGenerator targetPackage="" targetProject="">
      <property name="" value=""/>
    </sqlMapGenerator>
    <javaClientGenerator implementationPackage="" targetPackage="" targetProject="" type="">
      <property name="" value=""/>
    </javaClientGenerator>
    <table alias="" catalog="" delimitAllColumns="" delimitIdentifiers="" domainObjectName="" enableCountByExample="" enableDeleteByExample="" enableDeleteByPrimaryKey="" enableInsert="" enableSelectByExample="" enableSelectByPrimaryKey="" enableUpdateByExample="" enableUpdateByPrimaryKey="" escapeWildcards="" mapperName="" modelType="" schema="" selectByExampleQueryId="" selectByPrimaryKeyQueryId="" sqlProviderName="" tableName="">
      <property name="" value=""/>
      <generatedKey column="" identity="" sqlStatement="" type=""/>
      <domainObjectRenamingRule replaceString="" searchString=""/>
      <columnRenamingRule replaceString="" searchString=""/>
      <columnOverride column="" delimitedColumnName="" isGeneratedAlways="" javaType="" jdbcType="" property="" typeHandler="">
        <property name="" value=""/>
      </columnOverride>
    </table>
  </context>
</generatorConfiguration>

 

posted on 2023-06-01 16:46  zno2  阅读(18)  评论(0编辑  收藏  举报

导航