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
3
votes
1 answer

JDL import parsed successfully, but generated entities not matched

WHEN I import JDL, C:\temp\vdemo5>jhipster import-jdl room10.jh The import failed, I am not able to figure out why. Could you please help? This error happens for other imports also. Here is my JDL file room10.hj: entity Room { name String, …
Max
  • 31
  • 2
3
votes
1 answer

Error while parsing entities from JDL file jhipster

I create file with JDL studio without error but when I import the file with jhipster cli I have the following error: Using JHipster version installed locally in current project's node_modules Executing jhipster:import-jdl…
Julien Richard
  • 131
  • 1
  • 11
3
votes
2 answers

JHipster relation between predefined table USER and my own table

I need to define new table related to predefined 'User' table. Please, help me to write a correct JDL code for this entity diagram I tried to write file "mytable.jh" and import :>jhipster import-jdl mytable.jh entity MyTable{ userid Long,…
3
votes
2 answers

Practicing Domain Driven Design With JHipster

JHipster is great. It, however, models all objects as domain entity objects. An enum class, for example, is treated as a domain class. If I want to practice the domain driven design, I need to convert some of entity classes, which are generated by…
vic
  • 2,548
  • 9
  • 44
  • 74
3
votes
1 answer

JHipster JDL not generating anything because the database type must be passed

I'm using Jhipster 4.5.3 to generate some code from a JDL file I've created. Because I couldn't generate anything, I took the JDL Blog sample... and I have the same issues. The JDL documentation still mentions : You can generate entities from a…
agoncal
  • 464
  • 4
  • 14
2
votes
1 answer

how to tell JHipster JDL to enable 'API first development'?

When I generate a JHipster application manually, I get asked whether I want to to go with a 'API first'-approach (e.g.: Which other technologies would you like to use? > API first development using OpenAPI-generator) How can I do the same if want to…
domi
  • 2,167
  • 1
  • 28
  • 45
2
votes
2 answers

JHipster JDL: how to link entities (by ID) among microservices?

I am running the latest JHipster generator izio@1z10:~$ jhipster --version Using JHipster version installed globally 5.3.4 and I'm using the following JDL by running jhipster import-jdl jhipster-jdl.jh to generate my microservices and gateway…
1Z10
  • 2,801
  • 7
  • 33
  • 82
2
votes
1 answer

How to change or get rid of "my-suffix" in a JHipster React project?

I just started using JHipster and I am experimenting with 5.0.0-beta.1. I tried to create a simple application with React frontend. I also tried to import a sample JDL model (The Oracle “Human Resources” sample application) described in…
2
votes
1 answer

What is an Instant in JHipster JDL?

Where can I find any information about an instant in JDL? And how does it relate to a Date format...? Besides this: https://www.jhipster.tech/jdl/ Available field types and constraints Here are the types supported in the JDL: SQL MongoDB …
Mike
  • 1,059
  • 5
  • 28
  • 51
2
votes
1 answer

how to regenerate entities in jhipster import-jdl your-jdl-file.jh

Is there any way to tell jhipster import-jdl that you want to delete old entities already created and drop the database to create a new structure without creating a new proyect? When I make changes jhispter keeps my old entities and everyting gets…
Mike
  • 1,059
  • 5
  • 28
  • 51
2
votes
1 answer

Referring entity from another micro service to jdl-jhipster

I am planing to extend the default User Entity provided by jhipster.Hence I need to create an entity say, CustomUser in a different micro service, which will be in 1-1 relationship with the default User entity.I am planning to do this using jdl. Is…
2
votes
2 answers

jhipster import-jdl your-jdl-file.jh

After doing "jhipster import-jdl your-jdl-file.jh" to generate entities, if I found something missing (ie. relationship, entity, or field within an entity), can I redo the jh file and rerun the command again to make the changes? Appreciate the…
Douglas168
  • 17
  • 5
2
votes
4 answers

is it possible to generate uml or jdl model from existing jhipster project

after generating j hipster project is it possible generate JDL model or uml diagram from the generated code in order to see how the application is build and relations between classes.
bayrem404
  • 76
  • 2
  • 6
2
votes
0 answers

How to design entity in Jhipster jdl file for mongo db with complex data structure

I am new to jhipster and trying to use web application with mongodb as back end. I have complex structure like class inside class in java representation or object inside object in JSON with arrays as well. Please let me know if there is way to…
1
vote
1 answer

JHipster 8 beta JDL How to add relation to built in entity User

I am trying to associate a post to the currently logged in user but I get errors when I try to generate entities. What I'm trying to do seems similar to examples I see online and the documentation. https://www.jhipster.tech/user-entity/ I'm using…
Daniel
  • 11
  • 2
1
2
3
8 9