code-generator-core


Лицензия

Лицензия

Группа

Группа

com.github.fartherp
Идентификатор

Идентификатор

code-generator-core
Последняя версия

Последняя версия

1.0.4
Дата

Дата

Тип

Тип

jar
Описание

Описание

code-generator-core
code-generator-core
Ссылка на сайт

Ссылка на сайт

https://github.com/fartherp/code-generator-core
Система контроля версий

Система контроля версий

https://github.com/fartherp/code-generator-core

Скачать code-generator-core

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.fartherp/code-generator-core/ -->
<dependency>
    <groupId>com.github.fartherp</groupId>
    <artifactId>code-generator-core</artifactId>
    <version>1.0.4</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.fartherp/code-generator-core/
implementation 'com.github.fartherp:code-generator-core:1.0.4'
// https://jarcasting.com/artifacts/com.github.fartherp/code-generator-core/
implementation ("com.github.fartherp:code-generator-core:1.0.4")
'com.github.fartherp:code-generator-core:jar:1.0.4'
<dependency org="com.github.fartherp" name="code-generator-core" rev="1.0.4">
  <artifact name="code-generator-core" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.fartherp', module='code-generator-core', version='1.0.4')
)
libraryDependencies += "com.github.fartherp" % "code-generator-core" % "1.0.4"
[com.github.fartherp/code-generator-core "1.0.4"]

Зависимости

compile (4)

Идентификатор библиотеки Тип Версия
com.github.fartherp : framework-core jar 2.0.1
com.github.fartherp : framework-database jar 2.0.1
com.github.fartherp : javacode jar 2.0.1
com.github.fartherp : javaxml jar 2.0.1

test (1)

Идентификатор библиотеки Тип Версия
org.testng : testng jar 6.8.8

Модули Проекта

Данный проект не имеет модулей.

mybatis自动生成工具

表命名规范:

表名以tb_或td_开头(留个好习惯),如:菜单表:tb_menu

Framework生成的文件

JAVA文件

  • Bo 基本对象,对应数据库相应的表信息。 如:菜单表,MenuBase,Menu两个类Base对应的是数据的各个字段信息,非Base类是对基础类的扩展.
  • Dao 持久层。 如:MenuMapper,对应mybatis文件中相应的SQL方法.MenuDao,MenuDaoImpl.
  • Service service层,事务配置在此. 如:MenuService,MenuServiceImpl. 目前只能使用XML方式来配置事务.基本方法中增删改查为,save,update,del,find.

XML文件

  • xml文件mapper。 如:BaseMenuMapper.xml,基础XML文件,包括增删改查方法。MenuMapper是XML的扩展,自定义方法放在里面。

PPms生成的文件

JAVA文件

  • Po 基本对象. 如:Menu,对应表的各个字段信息.
  • Dao dao层. 如:MenuDao.对应mybatis文件中相应的SQL方法.
  • Service service层. 如:MenuService,MenuServiceImpl.
  • Action action层. 如:Action.

XML文件

  • xml文件mapper. 如:MenuMapper.xml. 基本方法中包括增(insert),批量增(insertBatch),改(update),删(delete),查(get),查列表(列表),分页(findPage).

spring文件

  • spring对应的action, servlet, tx.

感谢开源项目

MyBatis

MyBatis Generator

Версии библиотеки

Версия
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0