Giter VIP home page Giter VIP logo

autogenerator's Introduction

概述

该开源项目功能类似于Mybatis plus generator 或 Mybatis generator,均是通过表结构,自动生成代码,提高效率,不过该项目更加简单,易用。

注意

因为MYSQL数据库没有Boolean类型,而是由tinyint代替,但是在Java中,为了显示语义,我们最好还是用Boolean类型进行字段定义。

因此为了将普通的Boolean字段和真正的tinyint字段区分,我们需要遵循阿里巴巴Java编程规范。

表达是与否概念的字段,必须使用 is_xxx 的方式命名,数据类型是 unsigned

tinyint(1 表示是,0 表示否)

只有Boolean值的字段才会以 is_开头,主键不能以is_开头

Summary

this open source project functions like Mybatis plus generator or Mybatis generator,it can generate code automatically and improve efficiency through table structure,but the project is simpler and easier to use

autogenerator's People

Contributors

ccthought avatar

Watchers

James Cloos avatar  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.