GithubHelp home page GithubHelp logo

Comments (4)

chuntungho avatar chuntungho commented on May 14, 2024

自动合并的原理是通过注释(@mbg.generated)标识自动生成的元素,如果原来的代码不包含这个注释,就会当作自定义内容,会叠加在自动生成的代码上。
避免生成重复有两种方式:新的代码使用该工具生成,或在旧的代码增加注释@mbg.generated。
如果不是该种情况,麻烦贴一下重复的代码,我这边分析一下具体原因。

from mybatis-builder.

pdkst avatar pdkst commented on May 14, 2024

我在新建的项目里生成时没有问题的,但是原先的老项目配置比较混乱我也没搞清楚问题在哪里,mybatis generator也是这个问题、generator mybatis code插件生成不会出现这种个问题,公司项目不太方便贴代码,非常感谢你的响应~

from mybatis-builder.

chuntungho avatar chuntungho commented on May 14, 2024

客气了,谢谢你的参与。
从代码可维护性考虑,自动生成的代码需要注释说明,且不建议修改自动生成的代码。

from mybatis-builder.

pdkst avatar pdkst commented on May 14, 2024

~

from mybatis-builder.

Related Issues (9)

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.