Giter Site home page Giter Site logo

jdl-samples's Introduction

JHipster BOM and server-side library - DEPRECATED

Angular Build Status React Build Status Vue Build Status Webflux Build Status Azure DevOps Build Status Maven Central

Full documentation and information is available on our website at https://www.jhipster.tech/

This project is used by the JHipster generator. This is the Bill of Materials and server-side library:

  • jhipster-dependencies
  • jhipster-framework

If the current version is SNAPSHOT then to use this SNAPSHOT version:

  • clone this project
  • run ./mvnw clean install -Dgpg.skip=true, on Windows run .\mvnw.cmd clean install -D"gpg.skip=true"

Analysis of the JHipster server-side parent POM project

sonar-quality-gate sonar-coverage sonar-bugs sonar-vulnerabilities

jdl-samples's People

Contributors

amatosg avatar atomfrede avatar danielfran avatar deepu105 avatar dsharpe avatar jdubois avatar jhipster-bot avatar kacetal avatar mathieuaa avatar mraible avatar msgoon avatar mshima avatar ozkanpakdil avatar pascalgrimaud avatar rafreid avatar ruddell avatar sudharakap avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jdl-samples's Issues

No keycloak docker-compose file was generated

What's wrong with my jdl?
When I start all containers, I got the wrong message

Caused by: org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://localhost:9080/auth/realms/jhipster/.well-known/openid-configuration": Connection refused (Connection refused)

my jdl file:

application {
  config {
    baseName uaa
    packageName org.aasrnd.uaa
    applicationType uaa
    authenticationType uaa
    prodDatabaseType postgresql
    serviceDiscoveryType eureka
    cacheProvider hazelcast
    testFrameworks [cucumber, gatling]
    languages [zh-cn, en]
    nativeLanguage zh-cn
  }
}

application {
  config {
    baseName gateway
    packageName org.aasrnd.gateway
    applicationType gateway
    authenticationType uaa
    uaaBaseName "uaa"
    prodDatabaseType postgresql
    serviceDiscoveryType eureka
    serverPort 8880
    testFrameworks [cucumber, gatling]
    languages [zh-cn, en]
    nativeLanguage zh-cn
  }
  entities Blog, Post, Tag, Product
}

application {
  config {
    baseName blog
    packageName org.aasrnd.blog
    applicationType microservice
    authenticationType uaa
    uaaBaseName "uaa"
    prodDatabaseType postgresql
    serverPort 8881
    serviceDiscoveryType eureka
    testFrameworks [cucumber, gatling]
    languages [zh-cn, en]
    nativeLanguage zh-cn
  }
  entities Blog, Post, Tag
}

application {
  config {
    baseName store
    packageName org.aasrnd.store
    applicationType microservice
    authenticationType uaa
    uaaBaseName "uaa"
    databaseType mongodb
    devDatabaseType mongodb
    prodDatabaseType mongodb
    enableHibernateCache false
    serverPort 8882
    serviceDiscoveryType eureka
    testFrameworks [cucumber, gatling]
    languages [zh-cn, en]
    nativeLanguage zh-cn
  }
  entities Product
}

entity Blog {
  name String required minlength(3)
  handle String required minlength(2)
}
entity Post {
  title String required
  content TextBlob required
  date Instant required
}
entity Tag {
  name String required minlength(2)
}
entity Product {
  title String required
  price BigDecimal required min(0)
  image ImageBlob
}
relationship ManyToOne {
  Blog{user(login)} to User
  Post{blog(name)} to Blog
}
relationship ManyToMany {
  Post{tag(name)} to Tag{post}
}
paginate Post, Tag with infinite-scroll
paginate Product with pagination
microservice Product with store
microservice Blog, Post, Tag with blog

deployment {
  deploymentType docker-compose
  appsFolders [uaa, gateway, blog, store]
  dockerRepositoryName "valdanito"
  consoleOptions [zipkin]
}

Error with deploy e-commerce-monolith.jdl

Hello, i'm deploying the example file e-commerce-monolith.jdl with jhipster "as it" but i have some error with the database

My current setup:

  • Mac OSX 11.3.1
  • Jhipster 7.9.3

JDL file init config

~/IdeaProjects/store > jhipster import-jdl ecommerce.jdl 6s 10:53:37
INFO! Using bundled JHipster
(node:69001) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./lib/util/" in the "exports" field module resolution of the package at /Users/karl/.nvm/versions/node/v16.20.0/lib/node_modules/generator-jhipster/node_modules/yeoman-environment/package.json.
Update this package.json to use a subpath pattern like "./lib/util/*".
(Use node --trace-deprecation ... to show where the warning was created)

    ██╗ ██╗   ██╗ ████████╗ ███████╗   ██████╗ ████████╗ ████████╗ ███████╗
    ██║ ██║   ██║ ╚══██╔══╝ ██╔═══██╗ ██╔════╝ ╚══██╔══╝ ██╔═════╝ ██╔═══██╗
    ██║ ████████║    ██║    ███████╔╝ ╚█████╗     ██║    ██████╗   ███████╔╝

██╗ ██║ ██╔═══██║ ██║ ██╔════╝ ╚═══██╗ ██║ ██╔═══╝ ██╔══██║
╚██████╔╝ ██║ ██║ ████████╗ ██║ ██████╔╝ ██║ ████████╗ ██║ ╚██╗
╚═════╝ ╚═╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═╝
https://www.jhipster.tech
Welcome to JHipster v7.9.3

INFO! Executing import-jdl ecommerce.jdl
INFO! The JDL is being parsed.
warn: An Entity name 'User' was used: 'User' is an entity created by default by JHipster. All relationships toward it will be kept but any attributes and relationships from it will be disregarded.
INFO! Found entities: Product, ProductCategory, CustomerDetails, ShoppingCart, ProductOrder.
INFO! The JDL has been successfully parsed
INFO! Generating 1 application.
Application files will be generated in folder: /Users/karl/IdeaProjects/store


Documentation for creating an application is at https://www.jhipster.tech/creating-an-app/
If you find JHipster useful, consider sponsoring the project at https://opencollective.com/generator-jhipster


This is an existing project, using the configuration from your .yo-rc.json file
to re-generate the project...

Found the .jhipster/Product.json configuration file, entity can be automatically generated!

Found the .jhipster/ProductCategory.json configuration file, entity can be automatically generated!

Found the .jhipster/CustomerDetails.json configuration file, entity can be automatically generated!

Found the .jhipster/ShoppingCart.json configuration file, entity can be automatically generated!

Found the .jhipster/ProductOrder.json configuration file, entity can be automatically generated!

 info Creating changelog for entities Product,ProductCategory,CustomerDetails,ShoppingCart,ProductOrder

KeyStore '/Users/karl/IdeaProjects/store/src/main/resources/config/tls//keystore.p12' generated successfully.

create .prettierrc
create .prettierignore
create package.json
force .yo-rc.json
force .jhipster/Product.json
force .jhipster/ProductOrder.json
force .jhipster/ProductCategory.json
force .jhipster/CustomerDetails.json
force .jhipster/ShoppingCart.json
create .gitignore
create .gitattributes
create .editorconfig
create sonar-project.properties
create .lintstagedrc.js
create .husky/pre-commit
create gradlew
create gradlew.bat
create gradle/wrapper/gradle-wrapper.jar
create npmw
create npmw.cmd
create src/main/resources/banner.txt
create src/main/resources/config/liquibase/changelog/00000000000000_initial_schema.xml
create src/main/resources/config/liquibase/master.xml
create src/main/docker/jib/entrypoint.sh
create checkstyle.xml
create .devcontainer/Dockerfile
create build.gradle
create settings.gradle
create gradle.properties
create gradle/sonar.gradle
create .devcontainer/devcontainer.json
create gradle/docker.gradle
create src/main/docker/app.yml
create src/main/resources/templates/error.html
create src/main/docker/prometheus/prometheus.yml
create gradle/profile_dev.gradle
create gradle/profile_prod.gradle
create src/main/docker/jhipster-control-center.yml
create gradle/war.gradle
create src/main/docker/sonar.yml
create gradle/zipkin.gradle
create gradle/wrapper/gradle-wrapper.properties
create src/main/resources/logback-spring.xml
create src/main/docker/monitoring.yml
create src/main/docker/grafana/provisioning/dashboards/dashboard.yml
create src/main/docker/grafana/provisioning/dashboards/JVM.json
create src/main/docker/grafana/provisioning/datasources/datasource.yml
create src/main/resources/i18n/messages.properties
create src/main/resources/config/application.yml
create src/main/resources/config/application-dev.yml
create src/main/resources/config/application-tls.yml
create src/main/resources/config/application-prod.yml
create src/main/java/com/jhipster/demo/store/security/SpringSecurityAuditorAware.java
create src/main/java/com/jhipster/demo/store/config/WebConfigurer.java
create src/main/java/com/jhipster/demo/store/security/SecurityUtils.java
create src/main/java/com/jhipster/demo/store/security/jwt/JWTFilter.java
create src/main/java/com/jhipster/demo/store/web/rest/UserJWTController.java
create src/main/java/com/jhipster/demo/store/management/SecurityMetersService.java
create src/main/java/com/jhipster/demo/store/config/AsyncConfiguration.java
create src/main/java/com/jhipster/demo/store/config/StaticResourcesWebConfiguration.java
create src/main/java/com/jhipster/demo/store/security/AuthoritiesConstants.java
create src/main/java/com/jhipster/demo/store/security/jwt/JWTConfigurer.java
create src/main/java/com/jhipster/demo/store/config/CRLFLogConverter.java
create src/main/java/com/jhipster/demo/store/config/Constants.java
create src/main/java/com/jhipster/demo/store/security/package-info.java
create src/main/java/com/jhipster/demo/store/config/SecurityConfiguration.java
create src/main/java/com/jhipster/demo/store/StoreApp.java
create src/main/java/com/jhipster/demo/store/config/LocaleConfiguration.java
create src/main/java/com/jhipster/demo/store/config/DateTimeFormatConfiguration.java
create src/main/java/com/jhipster/demo/store/config/CacheConfiguration.java
create src/main/java/com/jhipster/demo/store/ApplicationWebXml.java
create src/main/java/com/jhipster/demo/store/config/LoggingConfiguration.java
create src/main/java/com/jhipster/demo/store/security/DomainUserDetailsService.java
create src/main/java/com/jhipster/demo/store/GeneratedByJHipster.java
create src/main/java/com/jhipster/demo/store/config/ApplicationProperties.java
create src/main/java/com/jhipster/demo/store/config/DatabaseConfiguration.java
create src/main/java/com/jhipster/demo/store/config/JacksonConfiguration.java
create src/main/java/com/jhipster/demo/store/domain/package-info.java
create src/main/java/com/jhipster/demo/store/security/jwt/TokenProvider.java
create src/main/java/com/jhipster/demo/store/security/UserNotActivatedException.java
create src/main/java/com/jhipster/demo/store/aop/logging/LoggingAspect.java
create src/main/java/com/jhipster/demo/store/config/LoggingAspectConfiguration.java
create src/main/java/com/jhipster/demo/store/domain/AbstractAuditingEntity.java
create src/main/java/com/jhipster/demo/store/repository/package-info.java
create src/main/java/com/jhipster/demo/store/config/package-info.java
create src/main/java/com/jhipster/demo/store/web/rest/vm/LoginVM.java
create src/main/java/com/jhipster/demo/store/service/EmailAlreadyUsedException.java
create src/main/java/com/jhipster/demo/store/service/InvalidPasswordException.java
create src/main/java/com/jhipster/demo/store/web/rest/vm/package-info.java
create src/main/java/com/jhipster/demo/store/service/UsernameAlreadyUsedException.java
create src/main/java/com/jhipster/demo/store/web/rest/package-info.java
create src/main/java/com/jhipster/demo/store/service/package-info.java
create src/main/java/com/jhipster/demo/store/web/rest/ClientForwardController.java
create src/main/java/com/jhipster/demo/store/web/rest/errors/package-info.java
create src/main/java/com/jhipster/demo/store/web/rest/errors/BadRequestAlertException.java
create src/test/java/com/jhipster/demo/store/security/SecurityUtilsUnitTest.java
create src/main/java/com/jhipster/demo/store/web/rest/errors/ErrorConstants.java
create src/test/java/com/jhipster/demo/store/TechnicalStructureTest.java
create src/main/java/com/jhipster/demo/store/web/rest/errors/ExceptionTranslator.java
create src/main/java/com/jhipster/demo/store/web/rest/errors/FieldErrorVM.java
create src/test/resources/logback.xml
create src/main/java/com/jhipster/demo/store/web/rest/errors/EmailAlreadyUsedException.java
create src/test/resources/junit-platform.properties
create src/test/java/com/jhipster/demo/store/config/AsyncSyncConfiguration.java
create src/main/java/com/jhipster/demo/store/web/rest/errors/InvalidPasswordException.java
create src/main/java/com/jhipster/demo/store/web/rest/errors/LoginAlreadyUsedException.java
create src/test/java/com/jhipster/demo/store/config/WebConfigurerTest.java
create src/test/java/com/jhipster/demo/store/config/WebConfigurerTestController.java
create src/test/java/com/jhipster/demo/store/IntegrationTest.java
create src/test/java/com/jhipster/demo/store/config/StaticResourcesWebConfigurerTest.java
create src/test/java/com/jhipster/demo/store/security/DomainUserDetailsServiceIT.java
create src/test/java/com/jhipster/demo/store/config/SpringBootTestClassOrderer.java
create src/main/java/com/jhipster/demo/store/domain/User.java
create src/main/java/com/jhipster/demo/store/domain/Authority.java
create src/main/java/com/jhipster/demo/store/repository/AuthorityRepository.java
create src/main/resources/config/liquibase/data/user.csv
create src/main/resources/config/liquibase/data/authority.csv
create src/main/resources/config/liquibase/data/user_authority.csv
create src/test/java/com/jhipster/demo/store/web/rest/TestUtil.java
create src/test/java/com/jhipster/demo/store/web/rest/errors/ExceptionTranslatorTestController.java
create src/test/java/com/jhipster/demo/store/web/rest/errors/ExceptionTranslatorIT.java
create src/test/java/com/jhipster/demo/store/web/rest/ClientForwardControllerTest.java
create src/test/resources/config/application.yml
create src/main/java/com/jhipster/demo/store/repository/UserRepository.java
create src/main/java/com/jhipster/demo/store/service/UserService.java
create src/main/java/com/jhipster/demo/store/service/MailService.java
create src/main/resources/templates/mail/activationEmail.html
create src/main/resources/templates/mail/creationEmail.html
create src/main/resources/templates/mail/passwordResetEmail.html
create src/main/java/com/jhipster/demo/store/web/rest/vm/ManagedUserVM.java
create src/main/java/com/jhipster/demo/store/web/rest/AccountResource.java
create src/main/java/com/jhipster/demo/store/service/dto/package-info.java
create src/main/java/com/jhipster/demo/store/web/rest/UserResource.java
create src/main/java/com/jhipster/demo/store/web/rest/PublicUserResource.java
create src/main/java/com/jhipster/demo/store/service/dto/AdminUserDTO.java
create src/main/java/com/jhipster/demo/store/web/rest/vm/KeyAndPasswordVM.java
create src/main/java/com/jhipster/demo/store/service/dto/UserDTO.java
create src/test/resources/templates/mail/activationEmail.html
create src/test/resources/testcontainers.properties
create src/main/java/com/jhipster/demo/store/service/dto/PasswordChangeDTO.java
create src/test/resources/templates/mail/creationEmail.html
create src/test/resources/META-INF/spring.factories
create src/test/resources/templates/mail/passwordResetEmail.html
create src/test/java/com/jhipster/demo/store/config/TestContainersSpringContextCustomizerFactory.java
create src/main/java/com/jhipster/demo/store/service/mapper/package-info.java
create src/main/java/com/jhipster/demo/store/service/mapper/UserMapper.java
create src/test/java/com/jhipster/demo/store/web/rest/UserJWTControllerIT.java
create src/test/resources/templates/mail/testEmail.html
create src/test/java/com/jhipster/demo/store/management/SecurityMetersServiceTests.java
create src/test/java/com/jhipster/demo/store/security/jwt/TokenProviderTest.java
create src/test/java/com/jhipster/demo/store/security/jwt/TokenProviderSecurityMetersTests.java
create src/test/java/com/jhipster/demo/store/web/rest/PublicUserResourceIT.java
create src/test/java/com/jhipster/demo/store/security/jwt/JWTFilterTest.java
create src/test/java/com/jhipster/demo/store/web/rest/UserResourceIT.java
create src/test/java/com/jhipster/demo/store/web/rest/AccountResourceIT.java
create src/test/java/com/jhipster/demo/store/web/rest/WithUnauthenticatedMockUser.java
create src/test/resources/testcontainers/mysql/my.cnf
create src/test/java/com/jhipster/demo/store/service/MailServiceIT.java
create src/main/docker/config/mysql/my.cnf
create src/test/java/com/jhipster/demo/store/service/UserServiceIT.java
create src/main/java/com/jhipster/demo/store/config/LiquibaseConfiguration.java
create src/test/java/com/jhipster/demo/store/service/mapper/UserMapperTest.java
create src/test/java/com/jhipster/demo/store/config/EmbeddedSQL.java
create src/test/java/com/jhipster/demo/store/config/SqlTestContainer.java
create src/test/resources/config/application-testdev.yml
create src/test/resources/config/application-testprod.yml
create src/main/docker/mysql.yml
create src/main/resources/.h2.server.properties
create src/test/java/com/jhipster/demo/store/config/MysqlTestContainer.java
create src/test/java/com/jhipster/demo/store/config/timezone/HibernateTimeZoneIT.java
create webpack/logo-jhipster.png
create .eslintrc.json
create tsconfig.json
create tsconfig.test.json
create jest.conf.js
create src/test/java/com/jhipster/demo/store/repository/timezone/DateTimeWrapperRepository.java
create src/test/java/com/jhipster/demo/store/repository/timezone/DateTimeWrapper.java
create webpack/environment.js
create webpack/utils.js
create postcss.config.js
create webpack/webpack.common.js
create webpack/webpack.dev.js
create webpack/webpack.prod.js
create src/main/webapp/app/app.tsx
create src/main/webapp/app/config/dayjs.ts
create src/main/webapp/app/index.tsx
create src/main/webapp/app/config/notification-middleware.ts
create src/main/webapp/app/config/store.ts
create src/main/webapp/app/config/axios-interceptor.ts
create src/main/webapp/app/routes.tsx
create src/main/webapp/app/config/icon-loader.ts
create src/main/webapp/app/config/translation.ts
create src/main/webapp/app/setup-tests.ts
create src/main/webapp/app/app.scss
create src/main/webapp/app/typings.d.ts
create src/main/webapp/app/_bootstrap-variables.scss
create src/main/webapp/app/config/error-middleware.ts
create src/main/webapp/app/config/constants.ts
create src/main/webapp/app/config/logger-middleware.ts
create src/main/webapp/app/entities/reducers.ts
create src/main/webapp/app/entities/menu.tsx
create src/main/webapp/app/entities/routes.tsx
create src/main/webapp/app/modules/home/home.tsx
create src/main/webapp/app/modules/login/logout.tsx
create src/main/webapp/app/modules/login/login.tsx
create src/main/webapp/app/modules/login/login-modal.tsx
create src/main/webapp/app/modules/home/home.scss
create src/main/webapp/app/shared/reducers/index.ts
create src/main/webapp/app/shared/reducers/application-profile.ts
create src/main/webapp/app/shared/reducers/locale.ts
create src/main/webapp/app/modules/account/index.tsx
create src/main/webapp/app/modules/account/activate/activate.tsx
create src/main/webapp/app/modules/account/password/password.tsx
create src/main/webapp/app/modules/account/password/password.reducer.ts
create src/main/webapp/app/shared/reducers/reducer.utils.ts
create src/main/webapp/app/modules/account/register/register.tsx
create src/main/webapp/app/shared/reducers/authentication.ts
create src/main/webapp/app/modules/account/settings/settings.tsx
create src/main/webapp/app/modules/account/register/register.reducer.ts
create src/main/webapp/app/modules/account/activate/activate.reducer.ts
create src/main/webapp/app/modules/account/password-reset/password-reset.reducer.ts
create src/main/webapp/app/modules/account/settings/settings.reducer.ts
create src/main/webapp/app/modules/account/password-reset/init/password-reset-init.tsx
create src/main/webapp/app/modules/administration/index.tsx
create src/main/webapp/app/modules/administration/administration.reducer.ts
create src/main/webapp/app/modules/account/password-reset/finish/password-reset-finish.tsx
create src/main/webapp/app/modules/administration/docs/docs.tsx
create src/main/webapp/app/modules/administration/docs/docs.scss
create src/main/webapp/app/modules/administration/configuration/configuration.tsx
create src/main/webapp/app/modules/administration/health/health.tsx
create src/main/webapp/app/modules/administration/health/health-modal.tsx
create src/main/webapp/app/modules/administration/logs/logs.tsx
create src/main/webapp/app/modules/administration/metrics/metrics.tsx
create src/main/webapp/app/modules/administration/user-management/index.tsx
create src/main/webapp/app/modules/administration/user-management/user-management.tsx
create src/main/webapp/app/modules/administration/user-management/user-management-update.tsx
create src/main/webapp/app/modules/administration/user-management/user-management-detail.tsx
create src/main/webapp/app/modules/administration/user-management/user-management-delete-dialog.tsx
create src/main/webapp/app/modules/administration/user-management/user-management.reducer.ts
create src/main/webapp/app/shared/util/date-utils.ts
create src/main/webapp/app/shared/layout/footer/footer.tsx
create src/main/webapp/app/shared/util/pagination.constants.ts
create src/main/webapp/app/shared/layout/header/header.tsx
create src/main/webapp/app/shared/DurationFormat.tsx
create src/main/webapp/app/shared/layout/header/header-components.tsx
create src/main/webapp/app/shared/layout/menus/index.ts
create src/main/webapp/app/shared/util/entity-utils.ts
create src/main/webapp/app/shared/layout/menus/locale.tsx
create src/main/webapp/app/shared/layout/menus/admin.tsx
create src/main/webapp/app/shared/auth/private-route.tsx
create src/main/webapp/app/shared/layout/header/header.scss
create src/main/webapp/app/shared/layout/menus/account.tsx
create src/main/webapp/app/shared/layout/footer/footer.scss
create src/main/webapp/app/shared/layout/menus/entities.tsx
create src/main/webapp/app/shared/layout/menus/menu-components.tsx
create src/main/webapp/app/shared/error/error-boundary.tsx
create src/main/webapp/app/config/axios-interceptor.spec.ts
create src/main/webapp/app/shared/layout/menus/menu-item.tsx
create src/main/webapp/app/config/notification-middleware.spec.ts
create src/main/webapp/app/shared/layout/password/password-strength-bar.tsx
create src/main/webapp/app/shared/error/error-boundary-routes.tsx
create src/main/webapp/app/shared/reducers/application-profile.spec.ts
create src/main/webapp/app/shared/reducers/authentication.spec.ts
create src/main/webapp/app/shared/error/page-not-found.tsx
create src/main/webapp/app/shared/util/entity-utils.spec.ts
create src/main/webapp/app/shared/auth/private-route.spec.tsx
create src/main/webapp/app/shared/model/user.model.ts
create src/main/webapp/app/shared/error/error-boundary.spec.tsx
create src/main/webapp/app/shared/error/error-boundary-routes.spec.tsx
create src/main/webapp/app/shared/layout/header/header.spec.tsx
create src/main/webapp/app/shared/layout/menus/account.spec.tsx
create src/main/webapp/app/shared/layout/password/password-strength-bar.scss
create src/main/webapp/app/modules/administration/administration.reducer.spec.ts
create src/main/webapp/app/modules/account/register/register.reducer.spec.ts
create src/main/webapp/app/modules/account/activate/activate.reducer.spec.ts
create src/main/webapp/app/modules/account/password/password.reducer.spec.ts
create src/main/webapp/app/modules/account/settings/settings.reducer.spec.ts
create src/main/webapp/app/modules/administration/user-management/user-management.reducer.spec.ts
create src/main/webapp/app/shared/reducers/locale.spec.ts
create src/main/webapp/content/images/jhipster_family_member_0.svg
create src/main/webapp/content/images/jhipster_family_member_0_head-192.png
create src/main/webapp/content/images/jhipster_family_member_0_head-256.png
create src/main/webapp/content/images/jhipster_family_member_0_head-384.png
create src/main/webapp/content/images/jhipster_family_member_0_head-512.png
create src/main/webapp/content/images/jhipster_family_member_1.svg
create src/main/webapp/content/images/jhipster_family_member_1_head-192.png
create src/main/webapp/content/images/jhipster_family_member_1_head-256.png
create src/main/webapp/content/images/jhipster_family_member_1_head-384.png
create src/main/webapp/content/images/jhipster_family_member_1_head-512.png
create src/main/webapp/content/images/jhipster_family_member_2.svg
create src/main/webapp/content/images/jhipster_family_member_2_head-192.png
create src/main/webapp/content/images/jhipster_family_member_2_head-256.png
create src/main/webapp/content/images/jhipster_family_member_2_head-384.png
create src/main/webapp/content/images/jhipster_family_member_2_head-512.png
create src/main/webapp/content/images/jhipster_family_member_3.svg
create src/main/webapp/content/images/jhipster_family_member_3_head-192.png
create src/main/webapp/content/images/jhipster_family_member_3_head-256.png
create src/main/webapp/content/images/jhipster_family_member_3_head-384.png
create src/main/webapp/content/images/jhipster_family_member_3_head-512.png
create src/main/webapp/content/images/logo-jhipster.png
create src/main/webapp/favicon.ico
create src/main/webapp/swagger-ui/dist/images/throbber.gif
create .eslintignore
create src/main/webapp/manifest.webapp
create src/main/webapp/WEB-INF/web.xml
create src/main/webapp/robots.txt
create src/main/webapp/404.html
create src/main/webapp/index.html
create src/main/webapp/content/css/loading.css
create src/main/webapp/swagger-ui/index.html
create src/main/webapp/i18n/en/error.json
create src/main/webapp/i18n/en/register.json
create src/main/webapp/i18n/en/login.json
create src/main/webapp/i18n/en/configuration.json
create src/main/webapp/i18n/en/home.json
create src/main/webapp/i18n/en/logs.json
create src/main/webapp/i18n/en/metrics.json
create src/main/webapp/i18n/en/activate.json
create src/main/webapp/i18n/en/sessions.json
create src/main/webapp/i18n/en/global.json
create src/main/webapp/i18n/en/settings.json
create src/main/webapp/i18n/en/reset.json
create src/main/webapp/i18n/en/password.json
create src/main/webapp/i18n/en/health.json
create src/main/webapp/i18n/en/user-management.json
create src/main/webapp/i18n/nl/error.json
create src/main/webapp/i18n/nl/login.json
create src/main/webapp/i18n/nl/sessions.json
create src/main/webapp/i18n/nl/home.json
create src/main/webapp/i18n/nl/settings.json
create src/main/webapp/i18n/nl/user-management.json
create src/main/webapp/i18n/nl/configuration.json
create src/main/webapp/i18n/nl/logs.json
create src/main/webapp/i18n/nl/metrics.json
create src/main/webapp/i18n/nl/password.json
create src/main/webapp/i18n/nl/activate.json
create src/main/webapp/i18n/nl/global.json
create src/main/webapp/i18n/nl/register.json
create src/main/webapp/i18n/nl/reset.json
create src/main/webapp/i18n/nl/health.json
create src/main/resources/i18n/messages_en.properties
create src/test/resources/i18n/messages_en.properties
create src/main/resources/i18n/messages_nl.properties
create src/test/resources/i18n/messages_nl.properties
create src/test/java/com/jhipster/demo/store/domain/ProductTest.java
create src/main/java/com/jhipster/demo/store/web/rest/ProductResource.java
create src/test/java/com/jhipster/demo/store/web/rest/ProductResourceIT.java
create src/main/java/com/jhipster/demo/store/repository/ProductRepository.java
create src/main/java/com/jhipster/demo/store/service/ProductService.java
create src/main/java/com/jhipster/demo/store/domain/enumeration/Size.java
create src/main/webapp/app/entities/product/product-detail.tsx
create src/main/webapp/app/entities/product/product.reducer.ts
create src/main/webapp/app/entities/product/product.tsx
create src/main/webapp/app/entities/product/index.tsx
create src/main/webapp/app/shared/model/product.model.ts
create src/main/webapp/app/entities/product/product-delete-dialog.tsx
create src/main/webapp/app/entities/product/product-update.tsx
create src/main/webapp/app/entities/product/product-reducer.spec.ts
create src/main/webapp/i18n/en/size.json
create src/main/webapp/i18n/nl/size.json
create src/main/webapp/i18n/en/product.json
create src/main/webapp/i18n/nl/product.json
create src/main/webapp/app/shared/model/enumerations/size.model.ts
create src/test/java/com/jhipster/demo/store/domain/ProductCategoryTest.java
create src/main/java/com/jhipster/demo/store/web/rest/ProductCategoryResource.java
create src/test/java/com/jhipster/demo/store/web/rest/ProductCategoryResourceIT.java
create src/main/java/com/jhipster/demo/store/repository/ProductCategoryRepository.java
create src/main/java/com/jhipster/demo/store/service/ProductCategoryService.java
create src/main/webapp/app/entities/product-category/product-category-detail.tsx
create src/main/webapp/app/shared/model/product-category.model.ts
create src/main/webapp/app/entities/product-category/product-category-delete-dialog.tsx
create src/main/webapp/app/entities/product-category/product-category.tsx
create src/main/webapp/app/entities/product-category/product-category-update.tsx
create src/main/webapp/app/entities/product-category/product-category.reducer.ts
create src/main/webapp/app/entities/product-category/product-category-reducer.spec.ts
create src/main/webapp/i18n/en/productCategory.json
create src/main/webapp/i18n/nl/productCategory.json
create src/main/webapp/app/entities/product-category/index.tsx
create src/test/java/com/jhipster/demo/store/domain/CustomerDetailsTest.java
create src/main/java/com/jhipster/demo/store/web/rest/CustomerDetailsResource.java
create src/test/java/com/jhipster/demo/store/web/rest/CustomerDetailsResourceIT.java
create src/main/java/com/jhipster/demo/store/repository/CustomerDetailsRepository.java
create src/main/java/com/jhipster/demo/store/service/CustomerDetailsService.java
create src/main/java/com/jhipster/demo/store/domain/enumeration/Gender.java
create src/main/webapp/app/entities/customer-details/customer-details-detail.tsx
create src/main/webapp/app/shared/model/customer-details.model.ts
create src/main/webapp/app/entities/customer-details/customer-details-delete-dialog.tsx
create src/main/webapp/app/entities/customer-details/customer-details-update.tsx
create src/main/webapp/app/entities/customer-details/customer-details.tsx
create src/main/webapp/app/entities/customer-details/customer-details-reducer.spec.ts
create src/main/webapp/app/entities/customer-details/customer-details.reducer.ts
create src/main/webapp/app/shared/model/enumerations/gender.model.ts
create src/main/webapp/i18n/en/gender.json
create src/main/webapp/i18n/nl/gender.json
create src/main/webapp/i18n/en/customerDetails.json
create src/main/webapp/i18n/nl/customerDetails.json
create src/main/webapp/app/entities/customer-details/index.tsx
create src/test/java/com/jhipster/demo/store/domain/ShoppingCartTest.java
create src/main/java/com/jhipster/demo/store/web/rest/ShoppingCartResource.java
create src/test/java/com/jhipster/demo/store/web/rest/ShoppingCartResourceIT.java
create src/main/java/com/jhipster/demo/store/repository/ShoppingCartRepository.java
create src/main/java/com/jhipster/demo/store/service/ShoppingCartService.java
create src/main/java/com/jhipster/demo/store/domain/enumeration/OrderStatus.java
create src/main/java/com/jhipster/demo/store/domain/enumeration/PaymentMethod.java
create src/main/webapp/app/entities/shopping-cart/shopping-cart-detail.tsx
create src/main/webapp/app/shared/model/shopping-cart.model.ts
create src/main/webapp/app/entities/shopping-cart/shopping-cart-delete-dialog.tsx
create src/main/webapp/app/entities/shopping-cart/shopping-cart-update.tsx
create src/main/webapp/app/entities/shopping-cart/shopping-cart.tsx
create src/main/webapp/app/entities/shopping-cart/shopping-cart-reducer.spec.ts
create src/main/webapp/app/shared/model/enumerations/order-status.model.ts
create src/main/webapp/app/entities/shopping-cart/shopping-cart.reducer.ts
create src/main/webapp/app/shared/model/enumerations/payment-method.model.ts
create src/main/webapp/i18n/en/orderStatus.json
create src/main/webapp/i18n/nl/orderStatus.json
create src/main/webapp/i18n/en/paymentMethod.json
create src/main/webapp/i18n/nl/paymentMethod.json
create src/main/webapp/app/entities/shopping-cart/index.tsx
create src/main/webapp/i18n/en/shoppingCart.json
create src/main/webapp/i18n/nl/shoppingCart.json
create src/test/java/com/jhipster/demo/store/domain/ProductOrderTest.java
create src/main/java/com/jhipster/demo/store/web/rest/ProductOrderResource.java
create src/test/java/com/jhipster/demo/store/web/rest/ProductOrderResourceIT.java
create src/main/java/com/jhipster/demo/store/repository/ProductOrderRepository.java
create src/main/java/com/jhipster/demo/store/service/ProductOrderService.java
create src/main/webapp/app/entities/product-order/product-order-detail.tsx
create src/main/webapp/app/entities/product-order/product-order.reducer.ts
create src/main/webapp/app/entities/product-order/index.tsx
create src/main/webapp/app/shared/model/product-order.model.ts
create src/main/webapp/app/entities/product-order/product-order-delete-dialog.tsx
create src/main/webapp/app/entities/product-order/product-order-update.tsx
create src/main/webapp/app/entities/product-order/product-order-reducer.spec.ts
create src/main/webapp/app/entities/product-order/product-order.tsx
create src/main/webapp/i18n/en/productOrder.json
create src/main/webapp/i18n/nl/productOrder.json
create src/main/resources/config/liquibase/fake-data/blob/hipster.png
create src/main/resources/config/liquibase/changelog/20230530145447_added_entity_Product.xml
create src/main/resources/config/liquibase/changelog/20230530145447_added_entity_constraints_Product.xml
create src/main/resources/config/liquibase/fake-data/product.csv
create src/main/resources/config/liquibase/changelog/20230530145547_added_entity_ProductCategory.xml
create src/main/resources/config/liquibase/fake-data/product_category.csv
create src/main/resources/config/liquibase/changelog/20230530145647_added_entity_CustomerDetails.xml
create src/main/resources/config/liquibase/changelog/20230530145647_added_entity_constraints_CustomerDetails.xml
create src/main/resources/config/liquibase/fake-data/customer_details.csv
create src/main/resources/config/liquibase/changelog/20230530145747_added_entity_ShoppingCart.xml
create src/main/resources/config/liquibase/changelog/20230530145747_added_entity_constraints_ShoppingCart.xml
create src/main/resources/config/liquibase/fake-data/shopping_cart.csv
create src/main/resources/config/liquibase/changelog/20230530145847_added_entity_ProductOrder.xml
create src/main/resources/config/liquibase/changelog/20230530145847_added_entity_constraints_ProductOrder.xml
create src/main/resources/config/liquibase/fake-data/product_order.csv
create README.md
create src/main/java/com/jhipster/demo/store/domain/Product.java
create src/main/java/com/jhipster/demo/store/domain/ProductCategory.java
create src/main/java/com/jhipster/demo/store/domain/CustomerDetails.java
create src/main/java/com/jhipster/demo/store/domain/ShoppingCart.java
create src/main/java/com/jhipster/demo/store/domain/ProductOrder.java
force .yo-rc.json
force .jhipster/Product.json
force .jhipster/ProductCategory.json
force .jhipster/CustomerDetails.json
force .jhipster/ShoppingCart.json
force .jhipster/ProductOrder.json
Git repository initialized.

Changes to package.json were detected.
Downloading https://services.gradle.org/distributions/gradle-7.4.2-bin.zip
...........10%...........20%...........30%...........40%...........50%...........60%...........70%...........80%...........90%...........100%

Welcome to Gradle 7.4.2!

Here are the highlights of this release:

  • Aggregated test and JaCoCo reports
  • Marking additional test source directories as tests in IntelliJ
  • Support for Adoptium JDKs in Java toolchains

For more details see https://docs.gradle.org/7.4.2/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

Task :npmSetup

added 1 package, and audited 212 packages in 2s

11 packages are looking for funding
run npm fund for details

1 high severity vulnerability

To address all issues, run:
npm audit fix

Run npm audit for details.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.4.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 1m
4 actionable tasks: 4 executed
Using node installed locally v16.17.0
Using npm installed locally 8.19.1
npm WARN deprecated [email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Use your platform's native performance.now() and performance.timeOrigin.
npm WARN deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated [email protected]: This module is no longer maintained, try this instead:
npm WARN deprecated npm i nyc
npm WARN deprecated Visit https://istanbul.js.org/integrations for other alternatives.

[email protected] prepare
husky install

husky - Git hooks installed

added 1788 packages, and audited 1789 packages in 2m

237 packages are looking for funding
run npm fund for details

13 vulnerabilities (4 moderate, 6 high, 3 critical)

To address all issues possible (including breaking changes), run:
npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run npm audit for details.
Application successfully committed to Git from /Users/karl/IdeaProjects/store.

If you find JHipster useful consider sponsoring the project https://www.jhipster.tech/sponsors/

Server application generated successfully.

Run your Spring Boot application:
./gradlew

Client application generated successfully.

Start your Webpack development server with:
npm start

[email protected] clean-www
rimraf build/resources/main/static/app/{src,build/}

Entity Product generated successfully.
Entity ProductCategory generated successfully.
Entity CustomerDetails generated successfully.
Entity ShoppingCart generated successfully.
Entity ProductOrder generated successfully.
INFO! Generator app succeed
Congratulations, JHipster execution is complete!
Sponsored with ❤️ by @oktadev.

Deploy the proyect

~/IdeaProjects/store master > ./gradlew 3m 39s 10:57:24

Task :npmInstall

[email protected] prepare
husky install

husky - Git hooks installed

up to date, audited 1789 packages in 9s

237 packages are looking for funding
run npm fund for details

13 vulnerabilities (4 moderate, 6 high, 3 critical)

To address all issues possible (including breaking changes), run:
npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run npm audit for details.

Task :webapp

[email protected] webapp:build
npm run clean-www && npm run webapp:build:dev --

[email protected] clean-www
rimraf build/resources/main/static/app/{src,build/}

[email protected] webapp:build:dev
webpack --config webpack/webpack.dev.js --env stats=minimal

Webpack: Starting ...

✔ Compile modules
✔ Build modules
✔ Optimize modules
✔ Emit files

Finished after 10.496 seconds.

Webpack: Starting ...

✔ Compile modules
✔ Build modules
✔ Optimize modules
✔ Emit files

Finished after 2.969 seconds.

48 assets
626 modules
webpack 5.74.0 compiled successfully in 10479 ms

Task :compileJava
Note: Hibernate JPA 2 Static-Metamodel Generator 5.6.10.Final

Task :bootRun
11:18:14.502 [Thread-0] DEBUG org.springframework.boot.devtools.restart.classloader.RestartClassLoader - Created RestartClassLoader org.springframework.boot.devtools.restart.classloader.RestartClassLoader@16251d0d

    ██╗ ██╗   ██╗ ████████╗ ███████╗   ██████╗ ████████╗ ████████╗ ███████╗
    ██║ ██║   ██║ ╚══██╔══╝ ██╔═══██╗ ██╔════╝ ╚══██╔══╝ ██╔═════╝ ██╔═══██╗
    ██║ ████████║    ██║    ███████╔╝ ╚█████╗     ██║    ██████╗   ███████╔╝

██╗ ██║ ██╔═══██║ ██║ ██╔════╝ ╚═══██╗ ██║ ██╔═══╝ ██╔══██║
╚██████╔╝ ██║ ██║ ████████╗ ██║ ██████╔╝ ██║ ████████╗ ██║ ╚██╗
╚═════╝ ╚═╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═╝

:: JHipster 🤓 :: Running Spring Boot 2.7.3 ::
:: https://www.jhipster.tech ::

2023-05-30T11:18:15.267-04:00 DEBUG 70641 --- [kground-preinit] org.jboss.logging : Logging Provider: org.jboss.logging.Log4j2LoggerProvider
2023-05-30T11:18:15.304-04:00 INFO 70641 --- [ restartedMain] com.jhipster.demo.store.StoreApp : Starting StoreApp using Java 11.0.19 on vikingo.local with PID 70641 (/Users/karl/IdeaProjects/store/build/classes/java/main started by karl in /Users/karl/IdeaProjects/store)
2023-05-30T11:18:15.306-04:00 DEBUG 70641 --- [ restartedMain] com.jhipster.demo.store.StoreApp : Running with Spring Boot v2.7.3, Spring v5.3.22
2023-05-30T11:18:15.307-04:00 INFO 70641 --- [ restartedMain] com.jhipster.demo.store.StoreApp : The following 2 profiles are active: "dev", "api-docs"
2023-05-30T11:18:17.176-04:00 DEBUG 70641 --- [ restartedMain] i.m.c.u.i.logging.InternalLoggerFactory : Using SLF4J as the default logging framework
2023-05-30T11:18:17.358-04:00 DEBUG 70641 --- [ restartedMain] c.j.demo.store.config.WebConfigurer : Registering CORS filter
2023-05-30T11:18:17.385-04:00 INFO 70641 --- [ restartedMain] c.j.demo.store.config.WebConfigurer : Web application configuration, using profiles: dev
2023-05-30T11:18:17.386-04:00 DEBUG 70641 --- [ restartedMain] c.j.demo.store.config.WebConfigurer : Initialize H2 console
2023-05-30T11:18:17.411-04:00 INFO 70641 --- [ restartedMain] c.j.demo.store.config.WebConfigurer : Web application fully configured
2023-05-30T11:18:17.628-04:00 DEBUG 70641 --- [ restartedMain] c.ehcache.core.Ehcache-usersByLogin : Initialize successful.
2023-05-30T11:18:17.643-04:00 DEBUG 70641 --- [ restartedMain] c.ehcache.core.Ehcache-usersByEmail : Initialize successful.
2023-05-30T11:18:17.645-04:00 DEBUG 70641 --- [ restartedMain] c.e.c.E.jhipster.demo.store.domain.User : Initialize successful.
2023-05-30T11:18:17.648-04:00 DEBUG 70641 --- [ restartedMain] c.e.c.E.j.demo.store.domain.Authority : Initialize successful.
2023-05-30T11:18:17.650-04:00 DEBUG 70641 --- [ restartedMain] c.e.c.E.j.d.s.domain.User.authorities : Initialize successful.
2023-05-30T11:18:17.652-04:00 DEBUG 70641 --- [ restartedMain] c.e.c.E.j.demo.store.domain.Product : Initialize successful.
2023-05-30T11:18:17.655-04:00 DEBUG 70641 --- [ restartedMain] c.e.c.E.j.d.s.domain.ProductCategory : Initialize successful.
2023-05-30T11:18:17.657-04:00 DEBUG 70641 --- [ restartedMain] c.e.c.E.j.d.s.d.P.products : Initialize successful.
2023-05-30T11:18:17.660-04:00 DEBUG 70641 --- [ restartedMain] c.e.c.E.j.d.s.domain.CustomerDetails : Initialize successful.
2023-05-30T11:18:17.662-04:00 DEBUG 70641 --- [ restartedMain] c.e.c.E.j.d.s.d.CustomerDetails.carts : Initialize successful.
2023-05-30T11:18:17.664-04:00 DEBUG 70641 --- [ restartedMain] c.e.c.E.j.d.store.domain.ShoppingCart : Initialize successful.
2023-05-30T11:18:17.666-04:00 DEBUG 70641 --- [ restartedMain] c.e.c.E.j.d.s.d.ShoppingCart.orders : Initialize successful.
2023-05-30T11:18:17.667-04:00 DEBUG 70641 --- [ restartedMain] c.e.c.E.j.d.store.domain.ProductOrder : Initialize successful.
2023-05-30T11:18:17.681-04:00 DEBUG 70641 --- [ restartedMain] c.j.d.store.config.AsyncConfiguration : Creating Async Task Executor
2023-05-30T11:18:17.707-04:00 DEBUG 70641 --- [ restartedMain] c.j.d.s.config.LiquibaseConfiguration : Configuring Liquibase
2023-05-30T11:18:17.855-04:00 WARN 70641 --- [ store-task-1] t.j.c.liquibase.AsyncSpringLiquibase : Starting Liquibase asynchronously, your database might not be ready at startup! Run
Running Changeset: config/liquibase/changelog/00000000000000_initial_schema.xml::00000000000001::jhipster
Running Changeset: config/liquibase/changelog/20230530145447_added_entity_Product.xml::20230530145447-1::jhipster
Running Changeset: config/liquibase/changelog/20230530145447_added_entity_Product.xml::20230530145447-1-data::jhipster
Running Changeset: config/liquibase/changelog/20230530145547_added_entity_ProductCategory.xml::20230530145547-1::jhipster
Running Changeset: config/liquibase/changelog/20230530145547_added_entity_ProductCategory.xml::20230530145547-1-data::jhipster
Running Changeset: config/liquibase/changelog/20230530145647_added_entity_CustomerDetails.xml::20230530145647-1::jhipster
Running Changeset: config/liquibase/changelog/20230530145647_added_entity_CustomerDetails.xml::20230530145647-1-data::jhipster
Running Changeset: config/liquibase/changelog/20230530145747_added_entity_ShoppingCart.xml::20230530145747-1::jhipster
Running Changeset: config/liquibase/changelog/20230530145747_added_entity_ShoppingCart.xml::20230530145747-1-data::jhipster
Running Changeset: config/liquibase/changelog/20230530145847_added_entity_ProductOrder.xml::20230530145847-1::jhipster
Running Changeset: config/liquibase/changelog/20230530145847_added_entity_ProductOrder.xml::20230530145847-1-data::jhipster
Running Changeset: config/liquibase/changelog/20230530145447_added_entity_constraints_Product.xml::20230530145447-2::jhipster
Running Changeset: config/liquibase/changelog/20230530145647_added_entity_constraints_CustomerDetails.xml::20230530145647-2::jhipster
Running Changeset: config/liquibase/changelog/20230530145747_added_entity_constraints_ShoppingCart.xml::20230530145747-2::jhipster
Running Changeset: config/liquibase/changelog/20230530145847_added_entity_constraints_ProductOrder.xml::20230530145847-2::jhipster
2023-05-30T11:18:18.681-04:00 ERROR 70641 --- [ store-task-1] t.j.c.liquibase.AsyncSpringLiquibase : Liquibase could not start correctly, your database is NOT ready: liquibase.exception.MigrationFailedException: Migration failed for changeset config/liquibase/changelog/20230530145847_added_entity_constraints_ProductOrder.xml::20230530145847-2::jhipster:_ Reason: liquibase.exception.DatabaseException: Violación de una restricción de Integridad Referencial: "FK_PRODUCT_ORDER__PRODUCT_ID: PUBLIC.PRODUCT_ORDER FOREIGN KEY(PRODUCT_ID) REFERENCES PUBLIC.PRODUCT(ID)"_Referential integrity constraint violation: "FK_PRODUCT_ORDER__PRODUCT_ID: PUBLIC.PRODUCT_ORDER FOREIGN KEY(PRODUCT_ID) REFERENCES PUBLIC.PRODUCT(ID)"; SQL statement:_ALTER TABLE PUBLIC.product_order ADD CONSTRAINT fk_product_order__product_id FOREIGN KEY (product_id) REFERENCES PUBLIC.product (id) [23506-214] [Failed SQL: (23506) ALTER TABLE PUBLIC.product_order ADD CONSTRAINT fk_product_order__product_id FOREIGN KEY (product_id) REFERENCES PUBLIC.product (id)]

liquibase.exception.LiquibaseException: liquibase.exception.MigrationFailedException: Migration failed for changeset config/liquibase/changelog/20230530145847_added_entity_constraints_ProductOrder.xml::20230530145847-2::jhipster:
Reason: liquibase.exception.DatabaseException: Violación de una restricción de Integridad Referencial: "FK_PRODUCT_ORDER__PRODUCT_ID: PUBLIC.PRODUCT_ORDER FOREIGN KEY(PRODUCT_ID) REFERENCES PUBLIC.PRODUCT(ID)"
Referential integrity constraint violation: "FK_PRODUCT_ORDER__PRODUCT_ID: PUBLIC.PRODUCT_ORDER FOREIGN KEY(PRODUCT_ID) REFERENCES PUBLIC.PRODUCT(ID)"; SQL statement:
ALTER TABLE PUBLIC.product_order ADD CONSTRAINT fk_product_order__product_id FOREIGN KEY (product_id) REFERENCES PUBLIC.product (id) [23506-214] [Failed SQL: (23506) ALTER TABLE PUBLIC.product_order ADD CONSTRAINT fk_product_order__product_id FOREIGN KEY (product_id) REFERENCES PUBLIC.product (id)]
at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:126)
at liquibase.Liquibase.lambda$null$0(Liquibase.java:263)
at liquibase.Scope.lambda$child$0(Scope.java:180)
at liquibase.Scope.child(Scope.java:189)
at liquibase.Scope.child(Scope.java:179)
at liquibase.Scope.child(Scope.java:158)
at liquibase.Scope.child(Scope.java:243)
at liquibase.Liquibase.lambda$update$1(Liquibase.java:262)
at liquibase.Scope.lambda$child$0(Scope.java:180)
at liquibase.Scope.child(Scope.java:189)
at liquibase.Scope.child(Scope.java:179)
at liquibase.Scope.child(Scope.java:158)
at liquibase.Liquibase.runInScope(Liquibase.java:2414)
at liquibase.Liquibase.update(Liquibase.java:209)
at liquibase.Liquibase.update(Liquibase.java:195)
at liquibase.integration.spring.SpringLiquibase.performUpdate(SpringLiquibase.java:314)
at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:269)
at org.springframework.boot.autoconfigure.liquibase.DataSourceClosingSpringLiquibase.afterPropertiesSet(DataSourceClosingSpringLiquibase.java:46)
at tech.jhipster.config.liquibase.AsyncSpringLiquibase.initDb(AsyncSpringLiquibase.java:118)
at tech.jhipster.config.liquibase.AsyncSpringLiquibase.lambda$afterPropertiesSet$0(AsyncSpringLiquibase.java:93)
at tech.jhipster.async.ExceptionHandlingAsyncTaskExecutor.lambda$createWrappedRunnable$1(ExceptionHandlingAsyncTaskExecutor.java:79)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: liquibase.exception.MigrationFailedException: Migration failed for changeset config/liquibase/changelog/20230530145847_added_entity_constraints_ProductOrder.xml::20230530145847-2::jhipster:
Reason: liquibase.exception.DatabaseException: Violación de una restricción de Integridad Referencial: "FK_PRODUCT_ORDER__PRODUCT_ID: PUBLIC.PRODUCT_ORDER FOREIGN KEY(PRODUCT_ID) REFERENCES PUBLIC.PRODUCT(ID)"
Referential integrity constraint violation: "FK_PRODUCT_ORDER__PRODUCT_ID: PUBLIC.PRODUCT_ORDER FOREIGN KEY(PRODUCT_ID) REFERENCES PUBLIC.PRODUCT(ID)"; SQL statement:
ALTER TABLE PUBLIC.product_order ADD CONSTRAINT fk_product_order__product_id FOREIGN KEY (product_id) REFERENCES PUBLIC.product (id) [23506-214] [Failed SQL: (23506) ALTER TABLE PUBLIC.product_order ADD CONSTRAINT fk_product_order__product_id FOREIGN KEY (product_id) REFERENCES PUBLIC.product (id)]
at liquibase.changelog.ChangeSet.execute(ChangeSet.java:708)
at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:56)
at liquibase.changelog.ChangeLogIterator$2.lambda$null$0(ChangeLogIterator.java:113)
at liquibase.Scope.lambda$child$0(Scope.java:180)
at liquibase.Scope.child(Scope.java:189)
at liquibase.Scope.child(Scope.java:179)
at liquibase.Scope.child(Scope.java:158)
at liquibase.changelog.ChangeLogIterator$2.lambda$run$1(ChangeLogIterator.java:112)
at liquibase.Scope.lambda$child$0(Scope.java:180)
at liquibase.Scope.child(Scope.java:189)
at liquibase.Scope.child(Scope.java:179)
at liquibase.Scope.child(Scope.java:158)
at liquibase.Scope.child(Scope.java:243)
at liquibase.changelog.ChangeLogIterator$2.run(ChangeLogIterator.java:93)
at liquibase.Scope.lambda$child$0(Scope.java:180)
at liquibase.Scope.child(Scope.java:189)
at liquibase.Scope.child(Scope.java:179)
at liquibase.Scope.child(Scope.java:158)
at liquibase.Scope.child(Scope.java:243)
at liquibase.Scope.child(Scope.java:247)
at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:65)
... 23 common frames omitted
Caused by: liquibase.exception.DatabaseException: Violación de una restricción de Integridad Referencial: "FK_PRODUCT_ORDER__PRODUCT_ID: PUBLIC.PRODUCT_ORDER FOREIGN KEY(PRODUCT_ID) REFERENCES PUBLIC.PRODUCT(ID)"
Referential integrity constraint violation: "FK_PRODUCT_ORDER__PRODUCT_ID: PUBLIC.PRODUCT_ORDER FOREIGN KEY(PRODUCT_ID) REFERENCES PUBLIC.PRODUCT(ID)"; SQL statement:
ALTER TABLE PUBLIC.product_order ADD CONSTRAINT fk_product_order__product_id FOREIGN KEY (product_id) REFERENCES PUBLIC.product (id) [23506-214] [Failed SQL: (23506) ALTER TABLE PUBLIC.product_order ADD CONSTRAINT fk_product_order__product_id FOREIGN KEY (product_id) REFERENCES PUBLIC.product (id)]
at liquibase.executor.jvm.JdbcExecutor$ExecuteStatementCallback.doInStatement(JdbcExecutor.java:440)
at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:78)
at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:161)
at liquibase.database.AbstractJdbcDatabase.execute(AbstractJdbcDatabase.java:1299)
at liquibase.database.AbstractJdbcDatabase.executeStatements(AbstractJdbcDatabase.java:1281)
at liquibase.changelog.ChangeSet.execute(ChangeSet.java:673)
... 43 common frames omitted
Caused by: org.h2.jdbc.JdbcSQLIntegrityConstraintViolationException: Violación de una restricción de Integridad Referencial: "FK_PRODUCT_ORDER__PRODUCT_ID: PUBLIC.PRODUCT_ORDER FOREIGN KEY(PRODUCT_ID) REFERENCES PUBLIC.PRODUCT(ID)"
Referential integrity constraint violation: "FK_PRODUCT_ORDER__PRODUCT_ID: PUBLIC.PRODUCT_ORDER FOREIGN KEY(PRODUCT_ID) REFERENCES PUBLIC.PRODUCT(ID)"; SQL statement:
ALTER TABLE PUBLIC.product_order ADD CONSTRAINT fk_product_order__product_id FOREIGN KEY (product_id) REFERENCES PUBLIC.product (id) [23506-214]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:508)
at org.h2.message.DbException.getJdbcSQLException(DbException.java:477)
at org.h2.message.DbException.get(DbException.java:223)
at org.h2.message.DbException.get(DbException.java:199)
at org.h2.constraint.ConstraintReferential.checkExistingData(ConstraintReferential.java:612)
at org.h2.command.ddl.AlterTableAddConstraint.tryUpdate(AlterTableAddConstraint.java:287)
at org.h2.command.ddl.AlterTableAddConstraint.update(AlterTableAddConstraint.java:72)
at org.h2.command.ddl.AlterTable.update(AlterTable.java:46)
at org.h2.command.CommandContainer.update(CommandContainer.java:169)
at org.h2.command.Command.executeUpdate(Command.java:252)
at org.h2.jdbc.JdbcStatement.executeInternal(JdbcStatement.java:252)
at org.h2.jdbc.JdbcStatement.execute(JdbcStatement.java:223)
at com.zaxxer.hikari.pool.ProxyStatement.execute(ProxyStatement.java:94)
at com.zaxxer.hikari.pool.HikariProxyStatement.execute(HikariProxyStatement.java)
at liquibase.executor.jvm.JdbcExecutor$ExecuteStatementCallback.doInStatement(JdbcExecutor.java:436)
... 48 common frames omitted

2023-05-30T11:18:18.971-04:00 DEBUG 70641 --- [ restartedMain] c.j.d.store.security.jwt.TokenProvider : Using a Base64-encoded JWT secret key
2023-05-30T11:18:20.075-04:00 DEBUG 70641 --- [ restartedMain] c.j.d.s.config.DatabaseConfiguration : H2 database is available on port 18080
2023-05-30T11:18:20.522-04:00 DEBUG 70641 --- [ restartedMain] c.a.JHipsterSpringDocGroupsConfiguration : Initializing JHipster OpenApi customizer
2023-05-30T11:18:20.533-04:00 DEBUG 70641 --- [ restartedMain] c.a.JHipsterSpringDocGroupsConfiguration : Initializing JHipster OpenApi default group
2023-05-30T11:18:20.536-04:00 DEBUG 70641 --- [ restartedMain] c.a.JHipsterSpringDocGroupsConfiguration : Initializing JHipster OpenApi management group
2023-05-30T11:18:21.051-04:00 INFO 70641 --- [ restartedMain] org.jboss.threads : JBoss Threads version 3.1.0.Final
2023-05-30T11:18:21.120-04:00 INFO 70641 --- [ restartedMain] com.jhipster.demo.store.StoreApp : Started StoreApp in 6.608 seconds (JVM running for 7.044)

Please if could provide some help to resolve the issue.
Thank's

KFW

How to add database schema property to multiple entities.

Hello All,
Currently I'm working on IOT project where we have multiple entities related to multiple DB schemas. We are planning to bootstrap our application using JHIPSTER 8 Beta version. Kindly suggest how to "How to add database schema property to multiple entities in JDL files?".
Help is Appreciated!
Thank you.

User details are getting null

Hi @mraible ,

  I tried the following JDL, based on some of the examples.

-- I can able to run all the dockers and launch the application.
--I can able to Login with both User and Admin
Issue is :
-- When am trying create a "Member " from entity screen am getting an error saying Users cannot be null.

I did

One-to-One
relation ship with Members and Users

User details should pull from

Keycloak

, if am not wrong.
Did i miss something ..?

Can you please help in this .
--Thanks.

application {
  config {
    baseName gateway,
    packageName com.sample.gateway,
    applicationType gateway,
    authenticationType oauth2,
    prodDatabaseType postgresql,
    searchEngine elasticsearch,
    serviceDiscoveryType eureka,
    testFrameworks [protractor],
    buildTool maven,
    clientFramework react,
    nativeLanguage en,
    languages [en, es] 
  }
  entities Members, Rewards, Address, Product, ProductCategory, ProductOrder, OrderItem, Invoice, Shipment
}

application {
  config {
    baseName school,
    packageName com.sample.users,
    applicationType microservice,
    authenticationType oauth2,
    prodDatabaseType postgresql,
    searchEngine elasticsearch,
    buildTool maven,
    serverPort 8081,
    serviceDiscoveryType eureka
  }
  entities Members, Rewards, Address
}

application {
  config {
    baseName store,
    packageName com.sample.store,
    applicationType microservice,
    authenticationType oauth2,
    databaseType mongodb,
    devDatabaseType mongodb,
    prodDatabaseType mongodb,
    searchEngine elasticsearch,
    buildTool maven,
    enableHibernateCache false,
    serverPort 8082,
    serviceDiscoveryType eureka
  }
 entities Product, ProductCategory, ProductOrder, OrderItem
}

application {
  config {
    baseName invoice,
    applicationType microservice,
    packageName com.sample.invoice,
    authenticationType oauth2,
    prodDatabaseType postgresql,
    buildTool maven,
    serverPort 8083,
    serviceDiscoveryType eureka
  }
  entities Invoice, Shipment
}


// Customer for the store
entity Members {
  firstName String required,
    lastName String required,
    gender Gender required,
    who Who required,
    email String required pattern(/^[^@\s]+@[^@\s]+\.[^@\s]+$/)
    age BigDecimal
}
// Address table for both Student and Faculty 
entity Address{
  addressLine1 String,
    addressLine2 String,
    city String,
    country String,
    primaryPhone String ,
    secondryPhone String
}
enum Gender {
  MALE, FEMALE, OTHER
}
enum Who {
  STUDENT, FACULTY, ADMIN
}
entity Rewards {
  facultyName String ,
        studentName String,
        timestamp ZonedDateTime required,
        rewardReceved BigDecimal,
        date Instant required,
        content TextBlob required
}
/**
 * Entities for store microservice
 */
// Product sold by the Online store 
entity Product {
  name String required
    description String
    price BigDecimal required min(0)
    size Size required
    image ImageBlob
}
enum Size {
  S, M, L, XL, XXL
}
entity ProductCategory {
  name String required,
    description String
}
entity ProductOrder {
  placedDate Instant required,
    email String required pattern(/^[^@\s]+@[^@\s]+\.[^@\s]+$/),
    status OrderStatus required,
    code String required,
    invoiceId Long,
    customer String required
}
enum OrderStatus {
  COMPLETED, PENDING, CANCELLED
}
entity OrderItem {
  quantity Integer required min(0)
    totalPrice BigDecimal required min(0)
    status OrderItemStatus required
}
enum OrderItemStatus {
  AVAILABLE, OUT_OF_STOCK, BACK_ORDER
}
/* Entities for Invoice microservice */
entity Invoice {
  code String required
    date Instant required
    details String
    status InvoiceStatus required
    paymentMethod PaymentMethod required
    paymentDate Instant required
    paymentAmount BigDecimal required
}
enum InvoiceStatus {
  PAID, ISSUED, CANCELLED
}
entity Shipment {
  trackingCode String
    date Instant required
    details String
}
enum PaymentMethod {
  CREDIT_CARD, CASH_ON_DELIVERY, PAYPAL
}
/* Entities for notification microservice */
entity Notification {
  date Instant required
    details String
    sentDate Instant required
    format NotificationType required
    userId Long required
    productId Long required
}
enum NotificationType {
  EMAIL, SMS, PARCEL
}
relationship ManyToOne {
  OrderItem{product(name) required} to Product
}
relationship OneToMany {
  Members{address} to Address{members(email) required} ,
  Members{rewards} to Rewards{members(email) required} ,
  ProductOrder{orderItem} to OrderItem{order(code) required} , 
  ProductCategory{product} to Product{productCategory(name)},
  Invoice{shipment} to Shipment{invoice(code) required}
}
relationship OneToOne {
  Members{user(login) required} to User
}
service Invoice, Shipment, Product, ProductCategory, ProductOrder, OrderItem with serviceClass
paginate Invoice, Shipment, Product, Members, ProductOrder, OrderItem with pagination
// MicroServices 
microservice Product, ProductOrder, ProductCategory, OrderItem with store
microservice Members, Address, Rewards with school
microservice Invoice, Shipment with invoice
microservice Notification with notification
// will be created under 'docker-compose' folder
deployment {
  deploymentType docker-compose
  appsFolders [gateway, school, store, invoice]
  dockerRepositoryName "govindraju9999"
  consoleOptions [zipkin]
}

Exception in Logger

Bad Request: Validation failed for argument [0] in public org.springframework.http.ResponseEntity<com.samplel.users.domain.Members> com.sample.users.web.rest.MembersResource.createMembers(com.sample.users.domain.Members) throws java.net.URISyntaxException: [Field error in object 'members' on field 'user': rejected value [null]; codes [NotNull.members.user,NotNull.user,NotNull.com.sample.users.domain.User,NotNull]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [members.user,user]; arguments []; default message [user]]; default message [must not be null]]

Gateway npm buil failed

Hi,

I am using the microservice-ecommerce-store-istio-deployment.jdl example.
The import-jdl succeeds, but webpack task fails:

Task :webpack

[email protected] webpack:build D:_development\jdl-samples\store
npm run cleanup && npm run webpack:build:main

[email protected] cleanup D:_development\jdl-samples\store
rimraf build/resources/main/static/

[email protected] webpack:build:main D:_development\jdl-samples\store
npm run webpack -- --config webpack/webpack.dev.js --env.stats=minimal

[email protected] webpack D:_development\jdl-samples\store
node --max_old_space_size=4096 node_modules/webpack/bin/webpack.js "--config" "webpack/webpack.dev.js" "--env.stats=minimal"

Webpack: Starting ...
Webpack: Starting ...

 Compile modules
 Build modules
 Optimize modules
 Emit files

Webpack: Finished after 48.974 seconds.

IDLE
ERROR Failed to compile with 2 errors10:38:01
IDLE
error in D:/_development/jdl-samples/store/node_modules/@types/enzyme/index.d.ts
IDLE
ERROR in D:/_development/jdl-samples/store/node_modules/@types/enzyme/index.d.ts(384,15):
TS2304: Cannot find name 'Cheerio'.
IDLE
error in D:/_development/jdl-samples/store/node_modules/@types/enzyme/index.d.ts

ERROR in D:/_development/jdl-samples/store/node_modules/@types/enzyme/index.d.ts(732,69):
TS2304: Cannot find name 'Cheerio'.

1133 modules

ERROR in D:/_development/jdl-samples/store/node_modules/@types/enzyme/index.d.ts
ERROR in D:/_development/jdl-samples/store/node_modules/@types/enzyme/index.d.ts(384,15):
TS2304: Cannot find name 'Cheerio'.

ERROR in D:/_development/jdl-samples/store/node_modules/@types/enzyme/index.d.ts
ERROR in D:/_development/jdl-samples/store/node_modules/@types/enzyme/index.d.ts(732,69):
TS2304: Cannot find name 'Cheerio'.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] webpack: node --max_old_space_size=4096 node_modules/webpack/bin/webpack.js "--config" "webpack/webpack.dev.js" "--env.stats=minimal"
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] webpack script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\SzatmariBendeguz\AppData\Roaming\npm-cache_logs\2020-10-06T08_38_02_191Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] webpack:build:main: npm run webpack -- --config webpack/webpack.dev.js --env.stats=minimal
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] webpack:build:main script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\SzatmariBendeguz\AppData\Roaming\npm-cache_logs\2020-10-06T08_38_02_229Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] webpack:build: npm run cleanup && npm run webpack:build:main
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] webpack:build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\SzatmariBendeguz\AppData\Roaming\npm-cache_logs\2020-10-06T08_38_02_264Z-debug.log

JHipster info:

INFO! Executing jhipster:info
Welcome to the JHipster Information Sub-Generator

JHipster Version(s)
[email protected] D:\_development\jdl-samples\store
`-- [email protected]

JHipster configuration, a .yo-rc.json file generated in the root folder
.yo-rc.json file
{
  "generator-jhipster": {
    "authenticationType": "jwt",
    "cacheProvider": "hazelcast",
    "clientFramework": "react",
    "serverPort": "8080",
    "serviceDiscoveryType": false,
    "skipUserManagement": false,
    "baseName": "store",
    "buildTool": "gradle",
    "databaseType": "sql",
    "devDatabaseType": "h2Disk",
    "enableHibernateCache": true,
    "enableSwaggerCodegen": false,
    "enableTranslation": true,
    "jhiPrefix": "jhi",
    "languages": ["en", "fr"],
    "messageBroker": false,
    "nativeLanguage": "en",
    "prodDatabaseType": "mysql",
    "searchEngine": false,
    "skipClient": false,
    "testFrameworks": ["protractor"],
    "websocket": false,
    "applicationType": "gateway",
    "packageName": "com.jhipster.demo.store",
    "packageFolder": "com/jhipster/demo/store",
    "useSass": true,
    "jhipsterVersion": "6.10.3",
    "creationTimestamp": 1601972880564,
    "skipServer": false,
    "clientPackageManager": "npm",
    "clientTheme": "none",
    "clientThemeVariant": "",
    "jwtSecretKey": "YourJWTSecretKeyWasReplacedByThisMeaninglessTextByTheJHipsterInfoCommandForObviousSecurityReasons",
    "embeddableLaunchScript": false,
    "entitySuffix": "",
    "dtoSuffix": "DTO",
    "otherModules": [],
    "blueprints": []
  },
  "entities": ["Customer", "Product", "ProductCategory", "ProductOrder", "OrderItem", "Invoice", "Shipment", "Notification"]
}
JDL for the Entity configuration(s) entityName.json files generated in the .jhipster directory
JDL entity definitions
/**
 * Entities for Store Gateway
 */
entity Customer {
  firstName String required,
  lastName String required,
  gender Gender required,
  email String required pattern(/^[^@\s]+@[^@\s]+\.[^@\s]+$/),
  phone String required,
  addressLine1 String required,
  addressLine2 String,
  city String required,
  country String required
}
/**
 * Entities for product microservice
 */
entity Product {
  name String required,
  description String,
  price BigDecimal required min(0),
  size Size required,
  image ImageBlob
}
entity ProductCategory {
  name String required,
  description String
}
entity ProductOrder {
  placedDate Instant required,
  status OrderStatus required,
  code String required,
  invoiceId Long,
  customer String required
}
entity OrderItem {
  quantity Integer required min(0),
  totalPrice BigDecimal required min(0),
  status OrderItemStatus required
}
/**
 * Entities for Invoice microservice
 */
entity Invoice {
  code String required,
  date Instant required,
  details String,
  status InvoiceStatus required,
  paymentMethod PaymentMethod required,
  paymentDate Instant required,
  paymentAmount BigDecimal required
}
entity Shipment {
  trackingCode String,
  date Instant required,
  details String
}
/**
 * Entities for notification microservice
 */
entity Notification {
  date Instant required,
  details String,
  sentDate Instant required,
  format NotificationType required,
  userId Long required,
  productId Long required
}
enum Gender {
  MALE,
  FEMALE,
  OTHER
}
enum Size {
  S,
  M,
  L,
  XL,
  XXL
}
enum OrderStatus {
  COMPLETED,
  PENDING,
  CANCELLED
}
enum OrderItemStatus {
  AVAILABLE,
  OUT_OF_STOCK,
  BACK_ORDER
}
enum InvoiceStatus {
  PAID,
  ISSUED,
  CANCELLED
}
enum PaymentMethod {
  CREDIT_CARD,
  CASH_ON_DELIVERY,
  PAYPAL
}
enum NotificationType {
  EMAIL,
  SMS,
  PARCEL
}

relationship OneToOne {
  Customer{user(login) required} to User
}
relationship OneToMany {
  ProductCategory{product} to Product{productCategory(name)},
  ProductOrder{orderItem} to OrderItem{order(code) required},
  Invoice{shipment} to Shipment{invoice(code) required}
}
relationship ManyToOne {
  OrderItem{product(name) required} to Product
}

paginate Customer, Product, ProductOrder, OrderItem, Invoice, Shipment with pagination
service Customer, Product, ProductCategory, ProductOrder, OrderItem, Invoice, Shipment with serviceClass
microservice Product, ProductCategory, ProductOrder, OrderItem with product
microservice Invoice, Shipment with invoice
microservice Notification with notification

Environment and Tools

openjdk version "11.0.2" 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)

git version 2.28.0.windows.1

node: v12.18.4

npm: 6.14.6

yarn: 1.21.1

Docker version 19.03.13, build 4484c46d9d

docker-compose version 1.27.4, build 40524192

identical .jhipster\Customer.json
identical .jhipster\Invoice.json
identical .jhipster\Notification.json
identical .jhipster\OrderItem.json
identical .jhipster\Product.json
identical .jhipster\ProductCategory.json
identical .jhipster\ProductOrder.json
identical .jhipster\Shipment.json

Any suggestion on this?
Switching to clientFramework angularX resolves the problem so I guess it is related to React, however I would like to use React.

Best Regards,
Bendegúz

Use import as a good practice to split modules

It would be a good idea to use file imports as good practice. That is, having a file where all tables and relationships are defined and in the definition of the backend, frontend and microservices, the file defining tables and relationships in each of them is imported and using those that are necessary for each one of them they.

Error parsing sample JDL's

I'm new to JHipster and running into a problem when attempting to import JDL sample files. I've tried both https://github.com/jhipster/jdl-samples/blob/master/blog.jh and https://github.com/jhipster/jdl-samples/blob/master/bug-tracker.jh

The existing tickets that I found were surrounding the .yo-rc.json file not existing. This file is in the directory that I'm running the import from. Also note that I found a .yo-rc-global.json file in my home directory (not the directory I'm running the import from).

$ ls -l .yo-rc.json 
-rw-r--r--  1 myuser  wheel  958 Sep 25 21:43 .yo-rc.json
myuser at -ltm1 in /projects/myuser-website
$ yo jhipster:import-jdl ~/Downloads/jhipster-jdl.jh 
The jdl is being parsed.
Error jhipster:import-jdl /Users/myuser/Downloads/jhipster-jdl.jh 

ERROR! 
Error while parsing entities from JDL```

How does 'restricted' in the online-store example work?

In de online-store example there is one Boolean (with the name 'restricted') in the entity Wishlist which gets a prefix of "jhi_" in a sql database. In the documentation I cannot find any details whether 'restricted' is a reserved word.

Create some jdl files for NoSQL DBs such as MongoDB

There isn't any jdl file yet for any NoSQL DB. We should create a couple of them.

It would be even better if we create them for the same domain as for the RDBMS to make it easier for the users to figure out how the entity-relationships are handled differently in RDBMS and NoSQL DBs.

Parsing blog.jh Error

I am following the 12 minute tutorial video and seem to be missing some key concept...

When I try to import the blog.jh file into JDL-Studio, I get the following error:

Expected "/*", "angularSuffix", "dto", "entity", "enum", "microservice", "noFluentMethod", "paginate", "relationship", "search", "service", "skipClient", "skipServer", ['\n'|'\t'|'\r'|' '|
|
], [A-Z_], or end of input but "<" found. -> line: 1

I am new to JDL-Studio, so I expect this is a simple issue?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.