/mybatis-generator-core

官方mybatis-generator-core的自动生成代码扩展

Primary LanguageJavaApache License 2.0Apache-2.0

MyBatis Generator (MBG) (version 1.3.7)

Build Status Coverage Status Maven central Sonatype Nexus (Snapshots) License

mybatis-generator

Code generator for MyBatis and iBATIS.

the sourcecode of the project from https://github.com/mybatis/generator

Extend

new Feature

1. batchInsertWithoutId

invoke this method to batch insert List(will not insert T.id)

  1. generate related xml
  2. generate related Mapper
  3. default generate the method

2. batchInsertWithId

invoke this method to batch insert List (will insert T.id)

  1. generate related xml
  2. generate related Mapper
  3. default generate the method

3. selectPagingAndSortingByExample

invoke this method to select data by pageable way

  1. generate related xml
  2. generate related Mapper
  3. default generate the method