Giter Site home page Giter Site logo

db2pojo's Introduction

Mybatis反向工程工具

简介

Mybatis反向工程可以通过数据库的表反向自动生成实体类以及Mapper映射文件与接口,并且对应生成了一些基础的增删改查的方法供使用。

工具

通过反向工程的配置文件来进行生成。为了方便使用,设计了可视化界面来进行参数的设置。界面如下: 工具图片.png

说明:

  1. 暂时仅支持MySQL数据库的反向工程,后续可能会加上其他数据库;
  2. 程序应该有一些小Bug,如果配置参数正确的话应该没有问题;
  3. 界面用Swing编写,跨平台(需要Java环境),双击运行即可。

使用简介

  1. 数据库选择栏讲your database换成你的数据库名字即可;
  2. 如果是远程数据库,讲localhost转换成ip地址即可;
  3. 用户名密码就是你的连接用户密码;
  4. 输出路径分为俩部分,&符号前面是生成的文件放置在磁盘的路径,你可以点击打开选择文件夹(只能选中文件夹,不能选取文件)。&符号后面的是你的项目包名,对应的mapper和model就在这个包下;
  5. 输入表名是指你数据库中需要反向工程的数据表的名称,多个表分别用&连接即可。

涉及知识

  1. Java的图形界面开发(使用IDEA);
  2. 自定义异常;
  3. Dom4j操作Xml文件;
  4. ....

db2pojo's People

Contributors

mrsorrow avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.