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

JHipster import-jdl not generating swagger

Is it possible to generate the swagger api.yaml from JDL? I've created and app with swagger addon and then imported entities from jdl but the swagger api.yaml is empty
DarVar
  • 16,882
  • 29
  • 97
  • 146
0
votes
1 answer

JHipster - Using ElasticSearch

for a JHipster beginner, the intro to ElasticSearch at http://www.jhipster.tech/using-elasticsearch/ is quite short. It says: "When the entity sub-generator is used, the generated entity gets automatically indexed by Elasticsearch, and is used in…
neblaz
  • 683
  • 10
  • 32
0
votes
2 answers

jhipster give error while parsing import jdl

I create a jdl file with "http://www.jhipster.tech/jdl-studio/", but when I launch import in my jhipster project I have this error : I have no error in jdl Studio Using JHipster version installed locally in current project's node_modules Executing…
user1450740
  • 731
  • 10
  • 26
0
votes
1 answer

Cannot import jdl files

I have a problem with JHipster. I cannot import any JDL Files in projects just created from scratch. Even the jdl-samples from JHipster don't work. I always get the same error: events.js:182 throw er; // Unhandled 'error' event ^ Error: ERROR!…
nero408
  • 128
  • 7
0
votes
1 answer

jhipster jdl import with microservices

I have a model.jdl with all entities defined like entity A{ ... } entity B{ ... } entity C{ ... } entity D{ ... } and I added some options to distribute this entities in microservices with sometime like this: microservice A,B with gateway…
0
votes
1 answer

Does JHipster JDL have an 'on update CURRENT_TIMESTAMP'

In MySQL I can set the attribute of a DATETIME field to ON UPDATE CURRENT_TIMESTAMP is there a way to set this in JHipster JDL?
rmg
  • 1,009
  • 16
  • 31
0
votes
1 answer

Jhipster import-jdl "Cannot find module 'glob'"

I cannot import my file "my-model.jh" With jhipster 3.12 i do : yo jhipster:import-jdl my-model.jh enter codemodule.js:327 throw err; Error: Cannot find module 'glob' at Function.Module._resolveFilename (module.js:325:15) at Function.Module._load…
brouille
  • 295
  • 4
  • 14
0
votes
2 answers

Jhipster-uml Required relationship SyntaxError

In order to create a required relationship using JDL, I found that we can do this: entity A entity B relationship ManyToOne{ A{b required} to B } When I run the following command jhipster-uml myjdlfile.jdl I get this: An error has occurred: …
anass
  • 165
  • 1
  • 8
0
votes
0 answers

Is it possible to use generic types with JHipster studio?

I am running a JHipster application, and I was wondering if I could use the JDL studio to design an entity with generic types. Given the following entity class: @Entity public class Box{ @Any private T t; @Id …
Seif Eddine Mouelhi
  • 2,161
  • 3
  • 19
  • 25
0
votes
1 answer

How to define a relationship with builtin User entity in jhipster jdl?

The following >yo jhipster:import-jdl model.jdl entity Car{ brand String } relationship ManyToOne{ Car{owner} to User } return parsing error: ERROR! Error while parsing entities from JDL [object Object] The same relationship can be built…
Nabil Sham
  • 2,305
  • 4
  • 26
  • 38
-1
votes
2 answers

Is it possible to create the jdl file from user input and then generate classes from it? I would be very happy if you could give an example

I'm new to jhipster. Is it possible to create the jdl file from user input and then generate classes from it? I would be very happy if you could give an example. I want to create a web app, basically main idea is creating a configuration with…
1 2 3
8
9