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
6
votes
0 answers

Integration of PostGIS with JHipster

We have currently a rather convoluted way of using the Geometry fieldtype of PostGIS with JHipster (4.6, currently trying to upgrade to 4.14 - which is not going smoothly - will probably post another question for this) we added hibernate-spatial…
Nenad
  • 181
  • 2
  • 6
6
votes
4 answers

Jhipster import-jdl not generating entities

I am running into a problem with import-jdl and I am not sure why it is not working. I am trying to generate entities for microservices application. All I get is The jdl is being imported. but nothing else. I used the sample…
user339664
  • 61
  • 1
  • 4
5
votes
1 answer

Jhipster entity sub generator: How to create liquibase DELTA changelogs?

jhipster --version 5.3.4 I'm evaluating JHipster and am testing how it handles database DDL modifications. In my test I created a Jhipster project and then ran jhipster import-jdl model.jh. JHipster generated all the integration test and everything…
axiopisty
  • 4,972
  • 8
  • 44
  • 73
5
votes
1 answer

JHipster : Generate MongoDB entities with JHipster Domain Language (JDL)

I'm trying JHipster with a MongoDB database. For my example I would like to store Books. To do that I would like to use the JDL format to be able to generate entities, repositories, services, dtos… This is my actual JDL file: And it works : entity…
4
votes
2 answers

Cannot import jdl file using jhipster

I'm new to jhipster. I am on jhipster v7.8.1, i can generate an app using the cli questions but when i try importing a jdl file i got the following error: **ERROR! Class constructor GAstVisitor cannot be invoked without 'new' TypeError: Class…
kk99
  • 37
  • 4
4
votes
1 answer

JHipster inheritance

I'm currently trying to code my UML-diagram scheme in JDL-Studio, but inheritance isn't supported apparently. Answers from different platforms didn't help. Let's say I want the class Fashion to inherit from Department. Is there a way to bypass the…
lu_lu
  • 133
  • 12
4
votes
0 answers

JDL-generated getter for OneToMany related entity in DTO

I'm using JDL (JHipster 5.8.1) to define my domain model with DTO option: entity Event { title String maxlength(128) required, bannerUrl String maxlength(256) required, summary …
nickotinus
  • 323
  • 5
  • 17
4
votes
2 answers

Jhipster not creating entities which I have imported at the time of jhipster command

I have used jhipster import-jdl my_file.jdl Jhipster version V5.7.0 And content of that jdl file is(below(IDK application?config is not showing in code editor in stack overflow)) application { config { prodDatabaseType mysql …
Satish Patro
  • 3,645
  • 2
  • 27
  • 53
4
votes
3 answers

How to use List with JDL entities in Jhipster

I'm new to use Jhipster. I want to create a JDL entity using my existing model classes. Here is my model class. @Data public class ResponseJson implements Serializable { private List names; } Normal JDL entity can be created…
RYJ
  • 439
  • 2
  • 16
  • 25
4
votes
2 answers

How to reset H2 Database to the original state after Jhipster jdl-generation?

I have this project that I ran in Jhipster with the generator yo jhipster:import-jdl. When it ends, everything is clean and ready to start. This is the state I would like to easily return to, in the H2 persistent disk copy, when I do tests, changes…
Mike
  • 1,059
  • 5
  • 28
  • 51
4
votes
2 answers

Jhipster export table

Hello is that it is possible to export the table deja generer by jhipster in format jh also this https://jhipster.github.io/jdl-studio/ That is to say do the opposite way instead of import I want to export the schema of jhipster on my machine
4
votes
1 answer

Generate Value Object (Not Entity) with JDL studio

My goal is to generate an entity that holds on to a value object using the JDL studio tool that jhipster provides using MongoDB. I see how to create an entity, that can optionally have a DTO, but I can't figure out how to create a value…
Chidra
  • 51
  • 1
3
votes
1 answer

Jhipster JDL relationships. Relation between two entities, Entity A is one to many with two columns seperately in entity B

Entity A: Person, Entity B: Payment (columns: effectiveDate, fromPerson, toPerson). Person should be one to many with both fromPerson and to Person so that I can track payer and payee. This is how I have defined them in jdl file which is not working…
Vicky
  • 657
  • 1
  • 8
  • 16
3
votes
1 answer

Proper procedure for modifying JHipster Entities using JDL

I am trying out JHipster (version 6.4.1) using a Monolith and disk-based H2 database. I have created some entities in JDL and have the basic CRUD webpages working. Now that I feel comfortable with the process, I want to add fields and rename…
Paul Waldo
  • 1,131
  • 10
  • 26
3
votes
1 answer

How can I define an enumerator with string values in JDL?

It is possible to define an enumerator with values in String in JDL as follows and with result in Java and Angular JDL may be enum LocaleLanguage { ES_ES("es_ES"), ES_CA("es_CA"), EN_GB("en_GB"), EN_US("en_US") loacle String } Java result…
Marco Osorio
  • 101
  • 8
1
2 3
8 9