mybatis-generator-gui icon indicating copy to clipboard operation
mybatis-generator-gui copied to clipboard

建议:类名自定义以及实体类是否生成选项

Open katasea opened this issue 6 years ago • 0 comments

1、自动生成的名称可以自己定制。 例如ReportBean 生成的mapperxml 文件名 当前为ReportBeanMapper.xml 但是可以定制为 ReportMapper.xml 同理dao 也一样,可以定制为ReportDao.java

2、可以选择是否自动生成实体类javabean。很多情况是我通过javabean 自动生成数据库表,然后通过自动生成代码去生成xml 和dao . 但自动生成的javabean会覆盖我之前写好的javabean包括一些注解和注释。

katasea avatar May 24 '18 03:05 katasea