GithubHelp home page GithubHelp logo

chuntungho / mybatis-builder Goto Github PK

View Code? Open in Web Editor NEW
38.0 38.0 20.0 2.4 MB

An IDEA plugin integrated with MyBatis Generator, compatible with IntelliJ IDEA CE

Home Page: https://mybatis.chuntung.com

License: MIT License

Java 99.88% HTML 0.12%
idea-plugin java mybatis-generator

mybatis-builder's People

Contributors

chuntungho avatar gitter-badger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mybatis-builder's Issues

‘Copy as Executable SQL’ have a bug

2020-06-23 10 : 39 : 21.367 [ DEBUG ] nm.examResult.listExamResultExport - ==> Preparing : SELECT * FROM (SELECT * FROM exam_result_data a WHERE op_orgnz_id LIKE concat(?, '%' ) AND date_format( exam_date, '%Y-%m-%d' ) >= ? AND ? >= date_format( exam_date, '%Y-%m-%d' ) ) erd LEFT JOIN student_info si ON erd.stu_id = si.stu_id WHERE si.stu_id IS NOT NULL GROUP BY erd.stu_id, erd.SUBJECT, erd.exam_date ORDER BY erd.exam_date DESC, CONVERT ( erd.stu_name USING gbk ) ASC 2020-06-23 10:39:21.367 [DEBUG] nm.examResult.listExamResultExport - ==> Parameters: xxxxjx(String), 2020-06-23(String), 2020-06-23(String) 2020-06-23 10:39:21.387 [DEBUG] nm.examResult.listExamResultExport - <== Total: 0

this will copy as :

图片

the second 2020-06-23 not a String

Plugin marked as incompatible

Using IntelliJ IDEA 2023.2 (Ultimate Edition)
The log says:
The MyBatis Builder (id=com.chuntung.plugin.mybatisbuilder, path=~/Library/Application Support/JetBrains/IntelliJIdea2023.2/plugins/MyBatisBuilder, version=1.2.4) plugin Plugin 'MyBatis Builder' (version 1.2.4) was explicitly marked as incompatible with the current version of the IDE

多次反向生成时,中文乱码

多次反向生成时Mapper文件,自定义方法注释中文乱码。
windows环境,文件编码为UTF-8,换行法为LF
image
XML文件内中文正常。

建议可以指定生成文件的换行符,不是默认和系统一致。

和Lombok结合使用问题

生成的代码中部分字段未遵循驼峰命名比如p_id字段
if (record.getpId() != null) { sql.SET("p_id = #{record.pId,jdbcType=INTEGER}"); }
而Lombok生成的是
if (record.getPId() != null) { sql.SET("p_id = #{record.pId,jdbcType=INTEGER}"); }

Rename field

The perfect plugin! Hope to add a feature:'Rename field', just like'Rename domain'.
image
image

xml中生成的sql代码重复

  • 1.0.2重复数量是三份相同代码

  • 1.0.3重复数量是两份
    使用maven插件mybatis generator也会出现这个bug

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.