Generator-jhipster: import-jdl sub generator does not work for all the options as per document

Created on 4 May 2016  Â·  18Comments  Â·  Source: jhipster/generator-jhipster

Overview of the issue

The JDL documentation mention keywords like 'microservice' and 'skipClient'. The JDL Studio it self does not recognise them neither does the 'import-jdl' subgenerator.

Motivation for or Use Case

Correct me if I'm wrong, but the idea behind JDL is that I can generate the domain and basic ui with it. Or am I using it wrong?

JHipster Version(s)

I'm using the current jhipster version 3.1.0

JHipster configuration, a .yo-rc.json file generated in the root folder
{
  "generator-jhipster": {
    "jhipsterVersion": "3.1.0",
    "baseName": "playgroundDemo",
    "packageName": "io.ntf.playground.demo",
    "packageFolder": "io/ntf/playground/demo",
    "serverPort": "8081",
    "authenticationType": "jwt",
    "hibernateCache": "no",
    "databaseType": "sql",
    "devDatabaseType": "postgresql",
    "prodDatabaseType": "postgresql",
    "searchEngine": "no",
    "buildTool": "gradle",
    "jwtSecretKey": "197aad57c73870745e33d590a03d46cb7454cee9",
    "enableTranslation": true,
    "applicationType": "microservice",
    "testFrameworks": [],
    "jhiPrefix": "jhi",
    "skipClient": true,
    "skipUserManagement": true,
    "nativeLanguage": "en",
    "languages": [
      "en",
      "de"
    ]
  }
}
Entity configuration(s) entityName.json files generated in the .jhipster directory
entity Task {
    id Long,
    userId Long,
    title String required,
    note String
}

entity Session {
    id Long,
    start ZonedDateTime,
    end ZonedDateTime
}

relationship OneToMany {
    Task{session} to Session{task}
}

paginate all with pagination

dto all with mapstruct

service all with serviceClass

skipClient for Task,Session
microservice all with myfancyapp
Browsers and Operating System

OS: OS X 10.11.4 (El Capitan)

area JDL

Most helpful comment

we are working on it.

Thanks & Regards,
Deepu

On Mon, May 23, 2016 at 7:55 PM, Lazaro Jr [email protected] wrote:

Hi everyone.

Some news about this?

I created a JDL file, I have begotten the entities from this file at my
microservices. I went to my gateway app and I passed the path to my
microservice but I got an error too.

—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/jhipster/generator-jhipster/issues/3532#issuecomment-220959899

All 18 comments

Support for these are not yet released.
On 4 May 2016 23:58, "Benjamin Herzig" [email protected] wrote:

_Overview of the issue_

The JDL documentation mention keywords like 'microservice' and
'skipClient'. The JDL Studio it self does not recognise them neither does
the 'import-jdl' subgenerator.
_Motivation for or Use Case_

Correct me if I'm wrong, but the idea behind JDL is that I can generate
the domain and basic ui with it. Or am I using it wrong?
_JHipster Version(s)_

I'm using the current jhipster version 3.1.0
_JHipster configuration, a .yo-rc.json file generated in the root folder_

{
"generator-jhipster": {
"jhipsterVersion": "3.1.0",
"baseName": "playgroundDemo",
"packageName": "io.ntf.playground.demo",
"packageFolder": "io/ntf/playground/demo",
"serverPort": "8081",
"authenticationType": "jwt",
"hibernateCache": "no",
"databaseType": "sql",
"devDatabaseType": "postgresql",
"prodDatabaseType": "postgresql",
"searchEngine": "no",
"buildTool": "gradle",
"jwtSecretKey": "197aad57c73870745e33d590a03d46cb7454cee9",
"enableTranslation": true,
"applicationType": "microservice",
"testFrameworks": [],
"jhiPrefix": "jhi",
"skipClient": true,
"skipUserManagement": true,
"nativeLanguage": "en",
"languages": [
"en",
"de"
]
}
}

_Entity configuration(s) entityName.json files generated in the .jhipster
directory_

entity Task {
id Long,
userId Long,
title String required,
note String
}

entity Session {
id Long,
start ZonedDateTime,
end ZonedDateTime
}

relationship OneToMany {
Task{session} to Session{task}
}

paginate all with pagination

dto all with mapstruct

service all with serviceClass

skipClient for Task,Session
microservice all with myfancyapp

_Browsers and Operating System_

OS: OS X 10.11.4 (El Capitan)

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/jhipster/generator-jhipster/issues/3532

@MathieuAA as discussed earlier Im still waiting for a new JHUML release or JDL update so that I can update the import-jdl generator to work with latest JDL

Lets keep this ticket open so that we can track that

Hi, if the sub-gen doesn't support that, that may be because the sub-gen doesn't use the JDL project?
See here.
It's normal it's still not released in JUML as I don't have time to work as much as I'd want to.

Yes that's not surprising that JHipster UML needs some time to have all the features of JHipster

To be quite frank Im kind of fed up explaining this @MathieuAA we had this discussed in few other issues and in the mailing list.
So to be frank I really dont like having JHUML as a dependency to JDL. I would rather prefer to have JDL as a standalone lib with all its required features like parsing the JDL, creating the entity jsons etc. either by duplicating the required code from JHUML or by making JDL a dependency for JHUML.
Also I dont like having the import-jdl feature in JHipster and JHUML as it confuses the user a lot and messes up the documentation. currently the documentation has stuff that only works with JHUML and does not work with import-jdl sub generator so its very confusing for the user. I would like each project to do only what its meant to do.

@jdubois @MathieuAA we need to take a decision on this to avoid lot of such discrepancy and issue in the future.

Hi everyone.

Some news about this?

I created a JDL file, I have begotten the entities from this file at my microservices. I went to my gateway app and I passed the path to my microservice but I got an error too.

we are working on it.

Thanks & Regards,
Deepu

On Mon, May 23, 2016 at 7:55 PM, Lazaro Jr [email protected] wrote:

Hi everyone.

Some news about this?

I created a JDL file, I have begotten the entities from this file at my
microservices. I went to my gateway app and I passed the path to my
microservice but I got an error too.

—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/jhipster/generator-jhipster/issues/3532#issuecomment-220959899

except does jet not work too

This sub generator needs a major revamp based on the latest https://github.com/jhipster/jhipster-domain-language and will be done soon. Till then i'll recommend everyone to use jhipster-uml to import JDL using command jhipster-uml yourFile.jdl

Guys, why does the documentation reflect that this functionality is live?

As of JHipster v3, microservices can be created

Please update the docs ;(

I've updated the documentation, so that should be OK. @MathieuAA is also working on updating the sub-generator to have everything working back again.

@jdubois i would prefer to keep this ticket open as we havent resolved it.
It will be solved only when we release jhipster-core and update the sub gen
to use that. If we wanted to use jhipster-uml directly then there is no
purpose of jhipster-core at all. So this is just an interim workaround.
Once we resolve the issue we should revert the documentation to make jdl
parsing a first class citizen of jhipster

Thanks & regards,
Deepu
On 5 Jul 2016 01:43, "Julien Dubois" [email protected] wrote:

I've updated the documentation, so that should be OK. @MathieuAA
https://github.com/MathieuAA is also working on updating the
sub-generator to have everything working back again.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/jhipster/generator-jhipster/issues/3532#issuecomment-230349197,
or mute the thread
https://github.com/notifications/unsubscribe/ABDlF3_mebQBXpwpos1oDiujHSnyVpZUks5qSWlsgaJpZM4IXS0t
.

OK @deepu105 I'm re-opening it

Hello guys, is this fix released yet?
Using jhipstter-uml with microservice keyword in my file doesn't work(I have installed v3.4.2).
Thanks!

@splashBrother A release containing this fix is currently planned for Wednesday (2 days). https://groups.google.com/forum/#!topic/jhipster-dev/7ZtAZJKAPN8

Ok thanks for your prompt reply and for the great job!

I'll do my best on Wednesday, but no promises :-)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

frantzynicolas picture frantzynicolas  Â·  3Comments

SudharakaP picture SudharakaP  Â·  3Comments

edvjacek picture edvjacek  Â·  3Comments

pascalgrimaud picture pascalgrimaud  Â·  3Comments

tomj0101 picture tomj0101  Â·  3Comments