All Projects → spawpaw → Mybatis Generator Gui Extension

spawpaw / Mybatis Generator Gui Extension

Licence: other
图形化MBG,内置丰富插件,可生成Service、Controller、View,配置简单。 A powerful GUI tool for MyBatisGenerator(MBG)

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Mybatis Generator Gui Extension

AllInOneFX
All In One JavaFX Application with a curated list of awesome JavaFX libraries, frameworks
Stars: ✭ 26 (-95.54%)
Mutual labels:  mybatis, mybatis-generator
S Mall Ssm
小小商城系统,JavaWEB项目,基于SSM,仿天猫页面,功能齐全,实现了自动处理关联查询的通用Mapper、抽象 BaseService 类、注解鉴权、参数注解校验等
Stars: ✭ 456 (-21.78%)
Mutual labels:  mybatis, mybatis-generator
gd-generator
A code generator that elegantly generates mybatis ORM (mapper and xml config) and intelligently retains user-defined mapper and xml, automatically creates/synchronizes database tables, and records and prints exactly after each domain model change Database repair sql, support for the production of a variety of complex VO (View Object) objects, al…
Stars: ✭ 82 (-85.93%)
Mutual labels:  mybatis, mybatis-generator
lightbatis
Lightbatis 增强 MyBatis 版Java 数据库持久层,更简洁并易用
Stars: ✭ 52 (-91.08%)
Mutual labels:  mybatis, mybatis-generator
mybatis-mapper2sql
Generate SQL Statements from the MyBatis3 Mapper XML file
Stars: ✭ 61 (-89.54%)
Mutual labels:  mybatis, mybatis-generator
mybatis-generator-gui-plus
基于MyBatis-Generator+SQLite+beautyeye_lnf开发的一款图形化代码生成器
Stars: ✭ 16 (-97.26%)
Mutual labels:  mybatis, mybatis-generator
kite-mybatis-builder
web 形式的mybatis 生成器
Stars: ✭ 58 (-90.05%)
Mutual labels:  mybatis, mybatis-generator
Roncoo Mybatis Generator
龙果开源-Mybatis代码自动生成工具
Stars: ✭ 165 (-71.7%)
Mutual labels:  mybatis, mybatis-generator
mybatis-generator-plus
轻度扩展mybatis-generator-core插件,与官方插件兼容。
Stars: ✭ 62 (-89.37%)
Mutual labels:  mybatis, mybatis-generator
SpringBootMovie
基于Spring Boot的电影网站
Stars: ✭ 56 (-90.39%)
Mutual labels:  mybatis, mybatis-generator
IDEAPractice
Java练习 - Java基础知识,面试题,小demo,长期积累 | intellij idea + maven + tomcat
Stars: ✭ 45 (-92.28%)
Mutual labels:  mybatis, mybatis-generator
Yan
使用Maven构建,整合Dubbo+Zookeeper+SpringMVC+Spring+MyBatis+Redis支持分布式的高效率便捷开发框架
Stars: ✭ 293 (-49.74%)
Mutual labels:  mybatis, mybatis-generator
mall
SpringBoot + Layui 电子商城系统
Stars: ✭ 38 (-93.48%)
Mutual labels:  mybatis, mybatis-generator
atguigu ssm crud
Atguigu-SSM-CRUD 一个最基本的CRUD系统,采用IDEA+Maven搭建,具备前后端交互功能,前端采用BootStrap+Ajax异步请求DOM渲染,后端采用SpringMVC+MyBatis+Mysql8.0+Servlet+Jsp,符合REST风格URL规范,并加入了Hibernate提供的数据校验功能,支持PageHelper的分页功能,很适合SSM阶段性练习。同时用到了很多前端操作以及BootStrap组件,也有利于学习JS和前端框架。
Stars: ✭ 52 (-91.08%)
Mutual labels:  mybatis, mybatis-generator
Spring Cloud Shop
spring cloud 版分布式电商项目,全力打造顶级多模块,高可用,高扩展电商项目
Stars: ✭ 248 (-57.46%)
Mutual labels:  mybatis, mybatis-generator
mybatis-generator
MyBatis code generator
Stars: ✭ 25 (-95.71%)
Mutual labels:  mybatis, mybatis-generator
Spring Boot Vue Bank
我,请始皇[打钱]是一个前后端分离的工具人系统,项目采用 SpringBoot+Go+Vue 开发,项目加入常见的企业级应用所涉及到的技术点,例如 Redis、RabbitMQ 等(主要是多用用工具多踩踩坑)。
Stars: ✭ 157 (-73.07%)
Mutual labels:  mybatis, mybatis-generator
Priest
dubbo mybatis springboot base soa rest api framework with customer code generator
Stars: ✭ 160 (-72.56%)
Mutual labels:  mybatis, mybatis-generator
demo springboot with mybatis
No description or website provided.
Stars: ✭ 17 (-97.08%)
Mutual labels:  mybatis, mybatis-generator
Zheng
基于Spring+SpringMVC+Mybatis分布式敏捷开发系统架构,提供整套公共微服务服务模块:集中权限管理(单点登录)、内容管理、支付中心、用户管理(支持第三方登录)、微信平台、存储系统、配置中心、日志分析、任务和通知等,支持服务治理、监控和追踪,努力为中小型企业打造全方位J2EE企业级开发解决方案。
Stars: ✭ 16,163 (+2672.38%)
Mutual labels:  mybatis, mybatis-generator

mybatis-generator-gui-extension

Crates.io Build Status Github Releases

GitHub forks GitHub stars

简介

mybatis-generator-gui-extension是一个为MybatisGenerator编写的图形化界面,为实体/Example/Mapper提供了丰富的扩展。

查看更多预览图片 English README

示例图片

功能清单

  • 文件合并:在重新生成代码时,将保留没有添加@mbg.generated注释的字段/方法/SQL语句
    • 可合并的文件:实体类ExampleMapper.javaMapper.xml
  • 自动包裹关键字:对于表名/字段名为关键字的情况,可指定用 ` 或其他字符串包裹,防止冲突
  • 实体类增强
    • rootClass(可选):可为实体对象指定RootClass
    • trim(可选):为String类型的setter添加trim
    • 使用真实列名(可选):可指定是否使用真实列名
    • 流式构建(可选):直接使用User user= new User().withUsername("uname").withPassword("123");创建对象
    • toString(可选):生成toString方法(可选择是否调用父类的toString方法)
    • equals/hashCode (可选):生成equals/hashCode 方法(可选择是否调用父类的equals/hashCode 方法)
    • Serializable(可选):继承Serializable接口
  • Example增强
    • CaseInsensitiveLike:添加CaseInsensitiveLike查询方式
    • ExampleCriteria增强插件
    • 真实字段获取插件
    • 分页插件:提供基于limit/offset的分页。
  • Mapper增强
    • 指定Mapper类型:可选择纯xml/java和xml混合/纯java的方式生成mapper
    • 指定主键:可指定表的主键,将会自动为该表生成获取自增主键的SQL
    • 虚拟主键
    • 逻辑删除
    • 批量插入
    • 添加@Mapper注解
    • 各个方法的开关
  • 生成JPA注解
  • 指定类头注释:自定义生成的文件的注释
  • 缓存:采用MBG官方的缓存插件,为生成的查询方法提供cache标签
  • 指定BasPackage
  • 对象重命名
    • Example 类的重命名
    • 实体 类的重命名
    • Mapper 类的重命名
  • 指定后缀: 可修改如下项目的后缀:dao包实体包MapperExample实体

如何使用

运行前请确保您的JDK版本为1.8u40以上
前三种方式需要先下载源代码

源码运行: 用IDE将源代码导入为Maven项目,然后直接运行com.spawpaw.mybatis.generator.gui.GeneratorGuiRunner即可
自助打包jar: 执行 mvn package
自助打包exe : 执行 mvn package jfx:native
直接下载jar包: 选择版本进行下载

二次开发 && 交流 (进入帮助页面)

如果您在使用过程中遇到了BUG,或者想让软件添加某些功能,请挂issue或者联系作者:[email protected]

项目地址 https://github.com/spawpaw/mybatis-generator-gui-extension
QQ交流群:171209016

贡献代码

1.创建issue(工单)

在本项目的issue页,创建一个issue,描述你所要添加的功能。

2.fork本仓库

将本仓库fork到你自己的账户,并将你的代码提交。

3.发起PR

提交完成后,你将会在你的仓库中看到PullRequest按钮,点击发起PR然后按照提示操作就可以了。

tips: 在commit时可以使用#<issue-id>来关联issue

其他

如果您觉得本软件对您有帮助,请别忘记给这个项目一个star   ο(=•ω<=)ρ⌒★

您的项目适合使用本工具吗?

先来看一下您的项目是否有如下需求:

  • 需要根据表结构生成其他代码:比如service、controller甚至是前端的代码。
  • 要求对SQL高度可控:DBA需要审查SQL脚本或需要使用自动化工具对所有SQL脚本进行检查。

如果有上面任意一项需求,那么使用本工具是没有任何问题的。 但是如果你追求快速的开发,简洁的代码,建议使用Spring Data JPAmybatis-plus通用Mapper, 这些项目提供了更优雅的方式来实现简单的CRUD、Example查询,毕竟大部分项目在大部分情况下很少遇到手写复杂代码的情况,会触及性能问题的代码也很少(即使有也很容易定位),通过本工具生成的大量代码反而可能会给维护带来一定麻烦。

打个小广告,近期要找工作的同学可以找我内推~ 邮箱:[email protected] 。可以先把简历发我,我可以给些建议~

字节跳动内推链接https://job.toutiao.com/s/JGCe4nh

捐赠捐助者列表

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].