MyBatis Generator
晚灯看街
山仍在
展开
-
MyBatis Generator系列之七:不同目标运行时(Target Runtime)代码生成和基本使用
不同目标运行时代码生成和基本使用目录不同目标运行时代码生成和基本使用不同目标运行时对比准备数据表MyBatis3DynamicSqlgeneratorConfig.xml生成产物测试生成代码MyBatis3KotlinMyBatis3generatorConfig.xml生成产物测试生成代码MyBatis3SimplegeneratorConfig.xml生成产物测试生成代码完整代码参考MyB...原创 2020-05-04 02:02:36 · 3615 阅读 · 1 评论 -
MyBatis Generator系列之六:使用Eclipse运行MyBatis Generator
使用Eclipse运行MyBatis Generator准备数据表两张表oa_staffCREATE TABLE `oa_staff` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL COMMENT '名字', `gender` tinyint(4) NOT NULL...原创 2020-05-04 02:02:14 · 1039 阅读 · 0 评论 -
MyBatis Generator系列之五:直接通过Java调用MyBatis Generator
直接通过Java调用MyBatis Generator准备数据表两张表oa_staffCREATE TABLE `oa_staff` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL COMMENT '名字', `gender` tinyint(4) NOT NULL ...原创 2020-05-04 02:01:53 · 750 阅读 · 2 评论 -
MyBatis Generator系列之四:通过Maven plugin运行
通过Maven plugin运行准备数据表两张表oa_staffCREATE TABLE `oa_staff` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL COMMENT '名字', `gender` tinyint(4) NOT NULL DEFAULT '0'...原创 2020-05-04 02:01:25 · 444 阅读 · 0 评论 -
MyBatis Generator系列之三:通过Ant运行MyBatis Generator
通过Ant运行MyBatis Generator准备数据表两张表oa_staffCREATE TABLE `oa_staff` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL COMMENT '名字', `gender` tinyint(4) NOT NULL DEF...原创 2020-05-04 02:00:53 · 471 阅读 · 0 评论 -
MyBatis Generator系列之二:通过命令行运行MyBatis Generator
通过命令行运行MyBatis Generator准备数据表两张表oa_staffCREATE TABLE `oa_staff` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL COMMENT '名字', `gender` tinyint(4) NOT NULL DEF...原创 2020-05-04 02:00:20 · 485 阅读 · 0 评论 -
MyBatis Generator系列之一:概述
MyBatis Generator文中内容翻译自官方文档MyBatis Generator简介MyBatis生成器(MBG)是MyBatis的代码生成器。它可以为所有版本的MyBatis生成代码。它检查一个数据库表(或多个表),并生成可用于访问表的工件。这减少了设置对象和配置文件以与数据库表交互的最初麻烦。MBG试图对大部分简单CRUD(插入、查找、更新、删除)的数据库操作产生重大影响。...原创 2020-05-04 01:59:06 · 200 阅读 · 0 评论