generator-dsuite

0.1.5 • Public • Published

generator-dsuite

scandaffoling dsuite applications and services many it's java-code in maven multi-module style

Installation

First, install Yeoman and generator-bonprix using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-dsuite

create new project

yo dsuite

question explanations

  • Your project name
    • used for naming the artifacts (-service/-ui will get added automatically)
  • Database schema
    • used for test-schema definitions
  • Base code package structure of project
    • used for mapping the java code package structure
    • same as in the pom.xml
  • Pom groupId
    • name of the groupId within the pom
  • Which type of project you would like to create
    • rest-project
      • will create a multi-maven-module project with basic configuration
    • ui
      • will create a single-maven-module project
  • Would you like to get an HelloWorld module created?
    • is only been asked in case of ui-type of project
    • will create a hello world module
  • Please set application.id
    • id of application
  • Name of systemuser
    • username to used via webservice interactions
  • Password of systemuser
    • password of the systemuser...

create a service

yo dsuite:service

question explanations

  • Base artifactId that is used to specify folders
    • asked for mapping correctly the new code
  • Base code package structure of project
    • should fit to your project
  • Name of Entity
    • correct classname of dto (Entity etc will be added automatically)
  • Database schema
    • name of schema will be added to entity configs
  • Application table prefix (like MD_)
  • name of prefix will be added automatically to sequence, etc
  • Name of the Table
    • give the name of the table with it's prefix
  • Which features does the Entity has?
    • you can do multiple selects to enable disable features
      • I18N
        • will create mapped LanguageEntity with all it's dto etc. parts
      • HasOptlock
        • will add optlock column to entity
      • FetchOptions
        • will add an empty FetchOptions class and link it to repository
  • LanguageEntity with description?
    • in case of I18N you can additionally to name add a description property

recursive property questions

  • Do you want to add a field to your entity?
    • by answering yes you can add a new property
  • What is the name of your field?
    • property name of field
  • What is the type of your field?
    • select type of field
  • What is the name of the column of this property?
    • oracle column name
  • Is this field nullable?
    • you can specify if filed should be marked as @NotNullable by answering no

License

© team rocketbase

Readme

Keywords

Package Sidebar

Install

npm i generator-dsuite

Weekly Downloads

0

Version

0.1.5

License

none

Unpacked Size

102 kB

Total Files

43

Last publish

Collaborators

  • rocketbase-io