GithubHelp home page GithubHelp logo

Comments (8)

bonjourcs avatar bonjourcs commented on May 27, 2024

这是 MyBatis Generator 逆向生成 Mapper 通用问题。

from mybatis-generator-plugin.

itfsw avatar itfsw commented on May 27, 2024

这个主要是你注释生成配置那儿有问题,只要注释中有 @mbg.generated 就会被正确替换的。

from mybatis-generator-plugin.

bonjourcs avatar bonjourcs commented on May 27, 2024

Java 代码是会被覆盖的,但是 XML 文件是追加的。

from mybatis-generator-plugin.

itfsw avatar itfsw commented on May 27, 2024

不会啊,代码中会判断有 @mbg.generated 就会替换
qq 20180423134451

from mybatis-generator-plugin.

itfsw avatar itfsw commented on May 27, 2024

MyBatis Generator : 1.1.2 ? 有点老了,是不是这个版本还没有实现这个?你可以试下升级下版本

from mybatis-generator-plugin.

bonjourcs avatar bonjourcs commented on May 27, 2024

😄 这个 MyBatis Generator 的版本对应的是你的 Release 里的版本。不知道我的配置哪里有问题,生成的 selectOneByExample@mbg.generatedselectByExample 没有该注释。

selectOneByExample
select-one
selectByExample
select

from mybatis-generator-plugin.

itfsw avatar itfsw commented on May 27, 2024

你检查下是不是你注释配置,问题应该还是出在那儿

from mybatis-generator-plugin.

bonjourcs avatar bonjourcs commented on May 27, 2024

😁 OK.多谢回复!

from mybatis-generator-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.