chuntungho / mybatis-builder

An IDEA plugin integrated with MyBatis Generator, compatible with IntelliJ IDEA CE
https://mybatis.chuntung.com
MIT License
42 stars 20 forks source link

和Lombok结合使用问题 #3

Closed icodeeeee closed 4 years ago

icodeeeee commented 5 years ago

生成的代码中部分字段未遵循驼峰命名比如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}"); }

chuntungho commented 5 years ago

应该是lombok插件生成getter不符合驼峰规则,尽量避免这种情况,可自定义字段生成规则,重命名为pid或id.

chuntungho commented 4 years ago

no fix