jvitorr / Jeasier

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jeasier - Java complete crud generator

With support for relationships and enumerations

admin

gentelella

1. Introduction

It is a library for the spring ecosystem, for spring mvc or spring boot projects, in its first version we can automatically generate a crud application with controllers, services, repositories, pagination and views with thymeleaf generated based on its model layer. If your project is new the library implements two free templates: AdminLte and Gentelella

2. Configuration

To start, just install the jar in the application's classpath. The default of the library is the property 'autoConfiguration = true', which means that the application will create all the packages at the level before its model for classes.
Example :
com.jeasier.model, the application will create the other packages from com.jeasier
Default for resources
  • staticos : src/main/resources/static
  • templates : src/main/resources/templates
If your project has a different structure, simply access the file easyjava.properties and change the following variables: autoConfiguration = false
    autoConfiguration=false
    resourcePath=resource path
    staticPath=the path to static
    templatePath=the template path
    referencePackage=your reference package
      

3.Execution

3.1 For projects with existing layouts:

3.1.1 Generating crud from a class:

JeasyAplication app = new JeasyAplication();
app.generateCrud(YourClass.class,"your layout decorator");

3.1.2 Generating crud from a package:

 
JeasierAplication app = new JeasierAplication();
app.generateCrud("your package","your layout decorator");

  

3.2 For projects with new ones:

3.2.1 Generating crud from a class:

 
JeasierAplication app = new JeasierAplication();
app.generateCrud(YouClass.class,new Gentelella());

  

3.2.2 Generating crud from a package:

JeasierAplication app = new JeasierAplication();
app.generateCrud("your package",new Gentelella());

4. Customization

To customize the packages, messages, creation path, and messages simply change the easyjava.properties file.

5. Access

  • /entidadeLowerCase/new - criação
  • /entidadeLowerCase/list – listagem

5. Suported classes

  • All primitive types
  • All wrapper classes
  • Date

6.My contacts

joaoftnunes1@gmail.com/

About


Languages

Language:Java 100.0%