JHISPTER
TYPE : ? Which type of application would you like to create?
Monolithic application (recommended for simple projects)
NAME : ? What is the base name of your application? JhipsterDemo
PACKAGE : ? What is your default Java package name? com.jhipster.demo
MONITOR : ? Do you want to use the JHipster Registry to configure, monitor and scale your application? Yes
DB TYPE : ? Which type of database would you like to use? (relational)
(relational) SQL (H2, MySQL, MariaDB, PostgreSQL, Oracle, MSSQL)
DB PROD : ? Which production database would you like to use? PostgreSQL
DB DEV : ? Which development database would you like to use? H2 with in-memory persistence
CACHE USE : ? Do you want to use the Spring cache abstraction?
Yes, with the Ehcache implementation (local cache, for a single node)
- ? Do you want to use Hibernate 2nd level cache? No
BUILD : ? Would you like to use Maven or Gradle for building the backend? Maven
TECHNOLOGIES : ? Which other technologies would you like to use?
Search engine using Elasticsearch, WebSockets using Spring Websocket
FRAMEWORK : ? Which Framework would you like to use for the client? Angular
STYLESHEET : ? Would you like to enable SASS stylesheet preprocessor? Yes
- ? Would you like to enable internationalization support? No
TEST : ? Besides JUnit and Jest, which testing frameworks would you like to use?
JHipster Market: ? Would you like to install other generators from the JHipster Marketplace? No
yo jhipster : entity X
================ Author =================
Fields
name (String) required
phone (String) required
address (String) required
? Do you want to add a relationship to another entity? Yes
? What is the name of the other entity? book
? What is the name of the relationship? book
? What is the type of the relationship? one-to-many
? What is the name of this relationship in the other entity? (author)
================= Book =================
Fields
title (String) required
description (String)
publicaitonDate (LocalDate) required
price (Integer) required
? Do you want to add a relationship to another entity? Yes
? What is the name of the other entity? author
? What is the name of the relationship? author
? What is the type of the relationship? many-to-one
? When you display this relationship on client-side, which field from 'author' do you want to use? This field will be displayed as a String, so it cannot be a Blob name
? Do you want to add any validation rules to this relationship? (y/N) N
https://www.youtube.com/watch?v=d1MEM8PdAzQ