Questions tagged [jdl]

JDL is the Domain Language of the application generator "JHipster". It is used to describe entities and their relations so that JHipster generates code for these entities.

For more info, see https://www.jhipster.tech/jdl/

131 questions
0
votes
1 answer

How can I design Jhipster JDL relationship for a simple Region > Country > State > City dropdowns

I couldn't figure out how to make relations between entities make them depended each other. Is jdl itself enough to have entities like below; Add New Region: Region Name Add New Country: Region (Dropdown) Country Name Add New State: Region…
Serhat Türkman
  • 373
  • 2
  • 11
0
votes
1 answer

jhipster import-jdl use relative path in liquibase master.xml

jhipster import-jdl model.jh by default generates the following tree structure: src/main/resources/config/liquibase ├── authorities.csv ├── changelog │   ├── 00000000000000_initial_schema.xml ├── master.xml ├── users.csv └──…
axiopisty
  • 4,972
  • 8
  • 44
  • 73
0
votes
0 answers

JHipster export-jdl problems

I have a test project. I have deleted by mistake jdl file. Now, when i try to recreate jdl file from existing project using jhipster export-jdl i receive this message: Using JHipster version installed locally in current project's…
Gavra
  • 51
  • 8
0
votes
1 answer

Custom numbers in Jhipster jdl

I am trying to modify my existing entity using the .jdl file for jhipster. Now, my requirement for the field is to have only numbers till 1 to 10. I know this can be easily handled in the fronted or the ts file. However, is there any way JHipster…
Aayush
  • 409
  • 4
  • 17
0
votes
1 answer

How to add constraints to relationships, while using JDL studio?

[JHipster Generator 4.14.4] i generate an "article" with some relationships with JDL Studio. Relationships in my article.json look like this : "relationships": [ { "relationshipType": "one-to-one", "relationshipName":…
3logy
  • 2,634
  • 8
  • 46
  • 99
0
votes
1 answer

Jhipster jdl error - `Valid source and destination entities are required`

I am trying to import my jdl file into my jhipster project but I am getting the following error: $ jhipster import-jdl ./Assets/jhipster-jdl.jh --serverOnly Using JHipster version installed globally Executing jhipster:import-jdl…
SomethingsGottaGive
  • 1,646
  • 6
  • 26
  • 49
0
votes
1 answer

QueryService error while using Jhipster JDL

I used Jhipster to generate entities in my app. Here is jdl file content : entity GameGenre { name String } entity Game { name String, description String, coverImage String, logo String } entity Tournament { } // defining…
user3364181
  • 531
  • 3
  • 14
  • 32
0
votes
0 answers

why is JHipster JDL only generating strings values for Enum expressions for angular/typescript code?

Not sure if this is a bug in JDL, or if I'm just not understanding it, but if I create an enum in Jhipster JDL like this enum PricingModel { AVAILABILITY, DEADLINES, PAYMENTS } Then it will generate this typescript for…
Lance
  • 113
  • 7
0
votes
1 answer

JHipster JDL studio not accepting application tag

I am trying to create .jh file with tag as given below. But Eclipse plugin or online JDL-Studio is not accepting this section. application { config { baseName myapp, path "../", // the generated folder will be "../myapp" …
0
votes
0 answers

how to get a search box using jhipster:import-jdl?

Lets say that we have a book and author entities in JDL-Studio like this: entity Book { name String required minlength(2) } entity Author { name String required minlength(2) } relationship ManyToMany { Book{author(name)} to…
Mike
  • 1,059
  • 5
  • 28
  • 51
0
votes
1 answer

How to get JDL or JH file from the existing jhipster project

Is there a way to get JH file that i used to import into my JHipster project. I am able to see list of json files inside .jhipster folder. But where i can find jh file and how to get that back. So that i can do modifications and import it again. …
Karthik
  • 545
  • 6
  • 23
0
votes
1 answer

Handle Inheritancy with JHipster

Please I would like to know if it is possible to use inheritancy while modeling class diagram with JDL language in JHipster. They did not mention this aspect in the doc.
Royken
  • 170
  • 1
  • 1
  • 9
0
votes
1 answer

jhipster import-jdl filter error creating entities filters

i have a project made with Jhipster 4.9, in my linux i have jhipster 4.13.3 when i run 'jhipster import-jdl src/model/Model.jdl' i get this error The jdl is being parsed. An error has occurred: SyntaxError Error message: Expected…
0
votes
1 answer

how to use Jhipster-jdl without modify the configration i update before?

when i create an Entity ,I modify the code in the Entity file .and then I add some fields in the jdl file and import . How can I keep the changes and add the fields in the Entity rather than override or not override.
0
votes
1 answer

MSQL DDL from JDL - Jhipster

Hi Have started working with JHipster recently. Wanted to know if there is way with which JDL can be converted to DDL to be exported to MySQL database. Seems a newbie question but did not get much answers on google. Or is it that when we configure…
Ameya
  • 1,914
  • 4
  • 29
  • 55
1 2 3
8
9