Skip to content

zxf969175364/mybatis-generator-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Feature

Combine regenerated xml mapper file with existing xml mapper file which you may have modified.

Combine xml mapper file

The left is the existing file,you add "batchInsert" and delete "insertSelective" and modify other nodes base on generated xml file.

The right is the combined file,which add insertSelective and keep you the section you add and already exist not be override.

Which means this can only add deleted nodes,not modify the current.

Usage

  • 1.download the jar in release,add it to your lib.

  • 2.config maven plugin.

    maven_config

  • 3.config generatorConfig.xml

<context id="MBG" targetRuntime="MyBatis3" defaultModelType="conditional">
        <plugin type="com.haitian.plugins.CombineXmlPlugin" />

About

mybatis-generator xml mapper合并插件

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%