1 Star 1 Fork 1

DengHui/mybatis-generator-oracle

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Zlib

mybatis-generator

生成mybatis映射文件、实体、dao

20180811 增加打包后目录

工程打包后目录

.
├── src                             # 生成mybatis代码源码目录
├── clear.cmd                       # windows下清理生成代码目录脚本,清理 src、mapper
├── generator.bat                   # windows下根据配置文件生成数据库表对应实体和映射文件脚本
├── config.properties               # 生成内容配置: jpa、注解等
├── generatorConfig.xml             # 数据库驱动、数据库连接url、用户名、密码、表...配置信息
├── mybatis-generator-core-1.3.5.jar # 工程编译后jar
├── mysql-connector-java-5.1.30.jar # mysql驱动
└── ojdbc6-11.2.0.3.jar             #  oracle驱动

配置

* 数据库驱动配置 conf/generatorConfig.xml  classPathEntry节点location属性修改为相应驱动jar mysql/oracle
* 数据连接修改conf/generatorConfig.xml  jdbcConnection节点修改相应数据库的连接串 mysql/oracle
* RenameSqlMapperPlugin 修改mapper.xml的文件名
* RenameJavaMapperPlugin 修改dao文件的文件名

参数配置

  • config.properties mybatis-generator-core-1.3.5.jar/config.properties
    • 可以设置 mybatis DAO 接口是否需要注解@Component,如果不需要,则“=”后的内容删除即可
    • 是否生成支持jpa方法: Jpa.flag=true
    • Jpa 字段是否需要加上@column注释 Jpa.field.column.flag=false
    • 是否支持lombook注解,如果需要,则不会生成getter setter方法 : getset.annotation=true
    • 20190731 config.properties 允许在jar外层配置,优先加载

mybatis-generator-oracle

出现refusing to merge unrelated histories 拒绝合并不相关的历史, 因为本地的内容确实是没和远程的文件接触过。 打开IDEA-Terminal,输入下面命令 git pull origin master --allow-unrelated-histories

介绍

JsDeng/mybatis-generator-oracle

软件架构

软件架构说明

安装教程

  1. xxxx
  2. xxxx
  3. xxxx

使用说明

  1. xxxx
  2. xxxx
  3. xxxx

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

码云特技

  1. 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md
  2. 码云官方博客 blog.gitee.com
  3. 你可以 https://gitee.com/explore 这个地址来了解码云上的优秀开源项目
  4. GVP 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
  5. 码云官方提供的使用手册 https://gitee.com/help
  6. 码云封面人物是一档用来展示码云会员风采的栏目 https://gitee.com/gitee-stars/
zlib License (C) 2020 雪碧让我微醺 This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution.

简介

JsDeng/mybatis-generator-oracle 展开 收起
README
Zlib
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/JsDeng/mybatis-generator-oracle.git
git@gitee.com:JsDeng/mybatis-generator-oracle.git
JsDeng
mybatis-generator-oracle
mybatis-generator-oracle
master

搜索帮助