An open API service indexing awesome lists of open source software.

https://github.com/carter-ya/idea-plugin-jpa-support

Generate entity/repositroy for JPA/Lombok/Spring Data JPA.
https://github.com/carter-ya/idea-plugin-jpa-support

generator idea-plugin jpa-entities

Last synced: about 2 months ago
JSON representation

Generate entity/repositroy for JPA/Lombok/Spring Data JPA.

Awesome Lists containing this project

README

          

- [English](README.md)
- [中文文档](README_zh.md)

# Plugin description

- Generate entity/repository class for JPA/Lombok/Spring Data JPA.
- Generate entity/repository class for JPA/Lombok/Spring Data JPA.
- Support internationalization. Currently supported languages are English, 简体中文.
- Support all databases.
- Support generate source code from Database plugin
- Support custom generate code template
- Available template directory
- Module template directory: `{module}/.idea/JPA Support/template`
- Project template directory: `{project}/.idea/JPA Support/template`
- Home template directory: `{user.home}/.JPA Support/template`
- Available templates
- Controller.vm
- DTO.vm
- JpaEntity.vm
- JpaRepository.vm
- MapperXml.vm
- MybatisGenerateConfig.vm
- QueryVO.vm
- SaveVO.vm
- Service.vm
- Service-MybatisPlus.vm
- Service-TkMybatis.vm
- UpdateVO.vm
- Support custom db type mapping
- Mac: Command + N or Windows: Alt + Insert and select Jpa Entities

# Guide

## Active Plugin

1. Way 1 `Generate JPA Entities`

![Way 1](doc/package_right_click.png)

2. Way 2 -> Edit area right click `Generate JPA Entities`

![Way 2](doc/editor_right_click.png)

3. `Database` right click

![Database右击](doc/database_right_click_generate.png)

> IDEA Ultimate only

4. `Hot key`

- Mac: `Command + N`
- Windows: `Alt + Insert`

## Usage

1. Step 1

![Step 1](doc/set_database_connection.png)

2. Step 2

![Step 2](doc/generate_setting.png)

3. Step 3

![Step 3](doc/select_and_generate.png)

## Other settings

1. Custom template

![Custom template](doc/template.png)

2. Custom type mapping

![Custom type mapping](doc/type_mapping.png)

## Related articles

1. [Use Tutorial Video YouTube](https://www.youtube.com/watch?v=CynidTePOys)

## Sponsor

JetBrains