Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated entities from JDL and imported to project. But It gives following error #22870

Closed
Arjuna-Bandara opened this issue Jul 15, 2023 · 2 comments

Comments

@Arjuna-Bandara
Copy link

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

██╗ ██║ ██╔═══██║ ██║ ██╔════╝ ╚═══██╗ ██║ ██╔═══╝ ██╔══██║
╚██████╔╝ ██║ ██║ ████████╗ ██║ ██████╔╝ ██║ ████████╗ ██║ ╚██╗
╚═════╝ ╚═╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═╝
https://www.jhipster.tech
Welcome to JHipster v8.0.0-beta.1

[email protected] C:\DEVELOPMENT\jhipsterPatientManagement
`-- [email protected]
JHipster configuration, a .yo-rc.json file generated in the root folder
.yo-rc.json file
{
  "applicationType": "monolith",
  "authenticationType": "jwt",
  "baseName": "jhipsterPatientManagement",
  "buildTool": "maven",
  "cacheProvider": "ehcache",
  "clientFramework": "angular",
  "clientTheme": "none",
  "creationTimestamp": 1688920965047,
  "databaseType": "sql",
  "devDatabaseType": "h2Disk",
  "devServerPort": 4200,
  "dtoSuffix": "DTO",
  "enableGradleEnterprise": null,
  "enableHibernateCache": true,
  "enableSwaggerCodegen": false,
  "enableTranslation": true,
  "entities": [
    "Patient",
    "Treatment",
    "Address",
    "Book",
    "Country",
    "Department",
    "Employee",
    "Job",
    "JobHistory",
    "Location",
    "Region",
    "Task"
  ],
  "entitySuffix": "",
  "gradleEnterpriseHost": null,
  "jhiPrefix": "jhi",
  "jhipsterVersion": "8.0.0-beta.1",
  "languages": [
    "en",
    "fr"
  ],
  "lastLiquibaseTimestamp": 1689413849000,
  "messageBroker": false,
  "microfrontend": false,
  "microfrontends": [],
  "nativeLanguage": "en",
  "packageFolder": "com/arjuna",
  "packageName": "com.arjuna",
  "pages": [],
  "prodDatabaseType": "mysql",
  "reactive": false,
  "searchEngine": false,
  "serverPort": null,
  "serverSideOptions": [],
  "serviceDiscoveryType": false,
  "skipCheckLengthOfIdentifier": false,
  "skipClient": false,
  "skipFakeData": false,
  "skipUserManagement": false,
  "testFrameworks": [],
  "websocket": false,
  "withAdminUi": true
}
Environment and Tools

openjdk version "19.0.2" 2023-01-17
OpenJDK Runtime Environment (build 19.0.2+7-44)
OpenJDK 64-Bit Server VM (build 19.0.2+7-44, mixed mode, sharing)

git version 2.38.1.windows.1

node: v18.16.1
npm: 9.5.1

'docker' command could not be found

JDL for the Entity configuration(s) entityName.json files generated in the .jhipster directory
JDL entity definitions
entity Patient {
  firstName String
  lastName String
  dob LocalDate
  nic String
  phone String
}
entity Treatment {
  details String
  doneBy String
}
entity Address {
  homeAddress String
  officeAddress String
}
entity Book {
  name String required minlength(2) maxlength(30)
  details String
  price Double required min(1)
}
entity Country {
  countryName String
}
entity Department {
  departmentName String required
}
/**
 * The Employee entity.
 */
entity Employee {
  /**
   * The firstname attribute.
   */
  firstName String
  lastName String
  email String
  phoneNumber String
  hireDate Instant
  salary Long
  commissionPct Long
}
entity Job {
  jobTitle String
  minSalary Long
  maxSalary Long
}
entity JobHistory {
  startDate Instant
  endDate Instant
  language Language
}
/**
 * not an ignored comment
 */
entity Location {
  streetAddress String
  postalCode String
  city String
  stateProvince String
}
entity Region {
  regionName String
}
/**
 * Task entity.\n@author The JHipster team.
 */
entity Task {
  title String
  description String
}
enum Language {
  FRENCH,
  ENGLISH,
  SPANISH
}

relationship OneToOne {
  Country{region} to Region
  Department{location} to Location
  JobHistory{job} to Job
  JobHistory{department} to Department
  JobHistory{employee} to Employee
  Location{country} to Country
}
relationship OneToMany {
  /**
   * A relationship
   */
  Department{employee} to Employee
  Employee{job} to Job
}
relationship ManyToOne {
  Employee{manager} to Employee
}
relationship ManyToMany {
  Job{task(title)} to Task{job}
}

search Patient, Treatment, Address, Book, Country, Department, Employee, Job, JobHistory, Location, Region, Task with no
paginate Treatment, Address, Book, Job with pagination
paginate Employee, JobHistory with infinite-scroll
service Treatment, Address, Book, Country, Department, JobHistory, Location, Region, Task with serviceImpl
dto Book with mapstruct
filter Book

Overview of the issue

Generated entities from JDL and imported to project. But It gives following error. Entity forms are not display.

Motivation for or Use Case

Can not create entities

Reproduce the error
  1. create new jhipster project with jhipster cmd
  2. download default JDL from https://start.jhipster.tech/jdl-studio/#/view/31c02aa0-d667-431a-9863-0ecf0a650356
  3. copy JDL to the project
  4. run. jhipster jdl jhipster-jdl.jdl --force
  5. run. mvnw
Related issues
Suggest a Fix
JHipster Version(s)

JHipster v8.0.0-beta.1

JHipster configuration
    ██╗ ██╗   ██╗ ████████╗ ███████╗   ██████╗ ████████╗ ████████╗ ███████╗
    ██║ ██║   ██║ ╚══██╔══╝ ██╔═══██╗ ██╔════╝ ╚══██╔══╝ ██╔═════╝ ██╔═══██╗
    ██║ ████████║    ██║    ███████╔╝ ╚█████╗     ██║    ██████╗   ███████╔╝

██╗ ██║ ██╔═══██║ ██║ ██╔════╝ ╚═══██╗ ██║ ██╔═══╝ ██╔══██║
╚██████╔╝ ██║ ██║ ████████╗ ██║ ██████╔╝ ██║ ████████╗ ██║ ╚██╗
╚═════╝ ╚═╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═╝
https://www.jhipster.tech
Welcome to JHipster v8.0.0-beta.1

[email protected] C:\DEVELOPMENT\jhipsterPatientManagement
`-- [email protected]
JHipster configuration, a .yo-rc.json file generated in the root folder
.yo-rc.json file
{
  "applicationType": "monolith",
  "authenticationType": "jwt",
  "baseName": "jhipsterPatientManagement",
  "buildTool": "maven",
  "cacheProvider": "ehcache",
  "clientFramework": "angular",
  "clientTheme": "none",
  "creationTimestamp": 1688920965047,
  "databaseType": "sql",
  "devDatabaseType": "h2Disk",
  "devServerPort": 4200,
  "dtoSuffix": "DTO",
  "enableGradleEnterprise": null,
  "enableHibernateCache": true,
  "enableSwaggerCodegen": false,
  "enableTranslation": true,
  "entities": [
    "Patient",
    "Treatment",
    "Address",
    "Book",
    "Country",
    "Department",
    "Employee",
    "Job",
    "JobHistory",
    "Location",
    "Region",
    "Task"
  ],
  "entitySuffix": "",
  "gradleEnterpriseHost": null,
  "jhiPrefix": "jhi",
  "jhipsterVersion": "8.0.0-beta.1",
  "languages": [
    "en",
    "fr"
  ],
  "lastLiquibaseTimestamp": 1689413849000,
  "messageBroker": false,
  "microfrontend": false,
  "microfrontends": [],
  "nativeLanguage": "en",
  "packageFolder": "com/arjuna",
  "packageName": "com.arjuna",
  "pages": [],
  "prodDatabaseType": "mysql",
  "reactive": false,
  "searchEngine": false,
  "serverPort": null,
  "serverSideOptions": [],
  "serviceDiscoveryType": false,
  "skipCheckLengthOfIdentifier": false,
  "skipClient": false,
  "skipFakeData": false,
  "skipUserManagement": false,
  "testFrameworks": [],
  "websocket": false,
  "withAdminUi": true
}

{
"generator-jhipster": {
"applicationType": "monolith",
"authenticationType": "jwt",
"baseName": "jhipsterPatientManagement",
"buildTool": "maven",
"cacheProvider": "ehcache",
"clientFramework": "angular",
"clientTheme": "none",
"creationTimestamp": 1688920965047,
"databaseType": "sql",
"devDatabaseType": "h2Disk",
"devServerPort": 4200,
"dtoSuffix": "DTO",
"enableGradleEnterprise": null,
"enableHibernateCache": true,
"enableSwaggerCodegen": false,
"enableTranslation": true,
"entities": [
"Patient",
"Treatment",
"Address",
"Book",
"Country",
"Department",
"Employee",
"Job",
"JobHistory",
"Location",
"Region",
"Task"
],
"entitySuffix": "",
"gradleEnterpriseHost": null,
"jhiPrefix": "jhi",
"jhipsterVersion": "8.0.0-beta.1",
"jwtSecretKey": "NGFlYjRhMWZjNTg0NmRlYmFlYTY3OWFmMzFlNmY4YTUxYjA4NDg3OGEzNDFjODYwNWQwYjVhOTRmNDI5YWM1NGZiYTA3YmQzOTgxZWM2YmJiODhiNmJjNTYyOTA4NGY1ZjIwOGU2N2VmMmM5OTMzN2E5MzZlM2JjODExYTRjNGE=",
"languages": ["en", "fr"],
"lastLiquibaseTimestamp": 1689413849000,
"messageBroker": false,
"microfrontend": false,
"microfrontends": [],
"nativeLanguage": "en",
"packageFolder": "com/arjuna",
"packageName": "com.arjuna",
"pages": [],
"prodDatabaseType": "mysql",
"reactive": false,
"searchEngine": false,
"serverPort": null,
"serverSideOptions": [],
"serviceDiscoveryType": false,
"skipCheckLengthOfIdentifier": false,
"skipClient": false,
"skipFakeData": false,
"skipUserManagement": false,
"testFrameworks": [],
"websocket": false,
"withAdminUi": true
}
}

Environment and Tools

openjdk version "19.0.2" 2023-01-17
OpenJDK Runtime Environment (build 19.0.2+7-44)
OpenJDK 64-Bit Server VM (build 19.0.2+7-44, mixed mode, sharing)

git version 2.38.1.windows.1

node: v18.16.1
npm: 9.5.1

'docker' command could not be found

JDL for the Entity configuration(s) entityName.json files generated in the .jhipster directory
JDL entity definitions
entity Patient {
  firstName String
  lastName String
  dob LocalDate
  nic String
  phone String
}
entity Treatment {
  details String
  doneBy String
}
entity Address {
  homeAddress String
  officeAddress String
}
entity Book {
  name String required minlength(2) maxlength(30)
  details String
  price Double required min(1)
}
entity Country {
  countryName String
}
entity Department {
  departmentName String required
}
/**
 * The Employee entity.
 */
entity Employee {
  /**
   * The firstname attribute.
   */
  firstName String
  lastName String
  email String
  phoneNumber String
  hireDate Instant
  salary Long
  commissionPct Long
}
entity Job {
  jobTitle String
  minSalary Long
  maxSalary Long
}
entity JobHistory {
  startDate Instant
  endDate Instant
  language Language
}
/**
 * not an ignored comment
 */
entity Location {
  streetAddress String
  postalCode String
  city String
  stateProvince String
}
entity Region {
  regionName String
}
/**
 * Task entity.\n@author The JHipster team.
 */
entity Task {
  title String
  description String
}
enum Language {
  FRENCH,
  ENGLISH,
  SPANISH
}

relationship OneToOne {
  Country{region} to Region
  Department{location} to Location
  JobHistory{job} to Job
  JobHistory{department} to Department
  JobHistory{employee} to Employee
  Location{country} to Country
}
relationship OneToMany {
  /**
   * A relationship
   */
  Department{employee} to Employee
  Employee{job} to Job
}
relationship ManyToOne {
  Employee{manager} to Employee
}
relationship ManyToMany {
  Job{task(title)} to Task{job}
}

search Patient, Treatment, Address, Book, Country, Department, Employee, Job, JobHistory, Location, Region, Task with no
paginate Treatment, Address, Book, Job with pagination
paginate Employee, JobHistory with infinite-scroll
service Treatment, Address, Book, Country, Department, JobHistory, Location, Region, Task with serviceImpl
dto Book with mapstruct
filter Book

Entity configuration(s) entityName.json files generated in the .jhipster directory
Browsers and Operating System

Windows 10. All browsers have this problem.

  • [x ] Checking this box is mandatory (this is just to show you read everything)
@deepu105
Copy link
Member

What error? I dont see any error in your issue description, please provide more info

@mshima
Copy link
Member

mshima commented Aug 23, 2023

Missing information.
Cannot be reproduced.

@mshima mshima closed this as not planned Won't fix, can't repro, duplicate, stale Aug 23, 2023
@deepu105 deepu105 added this to the 8.0.0-beta.3 milestone Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants