As of May 31, 2023, we have updated our Code of Conduct.

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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
33 views

Creating a custom option in jdl

My question here is flashing in my mind,how to create a custom option in jdl file? My use case is to add a pipeline like this pipeline : [Jenkins,Azure,Gitlab,Travis] And I know that there is a ...
Sayantan Chatterjee's user avatar
0 votes
0 answers
32 views

I have an error while creating Jhipster Microservice app

** ERROR! Error: spawn git ENOENT at ChildProcess._handle.onexit (node:internal/child_process:283:19) at onErrorNT (node:internal/child_process:476:16) at process.processTicksAndRejections (node:...
Yardim Server's user avatar
-1 votes
2 answers
44 views

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 ...
mrsrogers00's user avatar
0 votes
0 answers
134 views

Jhipster Auditing Entities

Hello I am using Jhipster to generate my backend code and I'm trying to add auditing fields to my entities, I am aware that my custom entity should extend the AbstractAuditingEntity class, but the ...
rami ismail's user avatar
0 votes
2 answers
52 views

How to create columns in JDL, that only accepts two values, Y or N? Y meaning Yes and N meaning No

entity Platform { platformName String required maxlength(100), onPermiseFlag String maxlength(1), cloudFlag String maxlength(1) } The column 'onPermiseFlag' and 'cloudFlag' can have only ...
Utkarsh Srivastava's user avatar
0 votes
1 answer
49 views

How to create multiple FK from one table reference same column of other table using JDL?

There are two tables Period_Type & Product_Subscription Period_Type ->ID ->Period_Type_Name --------------------------------------- Product_Subscription -> RENEWAL_PERIOD_TYPE_ID -> ...
Utkarsh Srivastava's user avatar
0 votes
1 answer
93 views

How to use the data type "text" in Jhipster jdl

Good Morning, pls I wish to know if it is possible to use the data type 'text' in Jhipster jdl.If Yes, pls help me. I 've try by inserting "text" but it seems not been recognize by the Jdl I ...
Sazang Ze's user avatar
0 votes
0 answers
38 views

ContextMapper to JDL using JHipster - incomplete jdl file creation

CML to JDL file using JHipster is not working and the file that is generated using the templates are incomplete below the details of the code The CML file that I used for this JDL generation is here ...
Ganesh K Thiagarajan's user avatar
0 votes
1 answer
103 views

OneToMany relationship generated with JHipster causes Exceptions

I have written the following JDL: enter code here entity A { name String required } entity B { name String unique required, } relationship OneToMany { B{children} to A{owner} } application { ...
juwi's user avatar
  • 389
0 votes
0 answers
12 views

How to use Java Deep Library within Eclipse

I'm trying to install Java Deep Library. There seem to be about a million different ways to accomplish this. I am using the Eclipse IDE. Thus far I have tried to import the project using Gradle, ...
I hate coding's user avatar
0 votes
1 answer
27 views

How to have a data type be the name of a field in JDL file (jHipster)

I have an entity in a JDL file. entity Person { Name String, Duration Integer } The word 'Duration' is a data type in the Jhipster Domain Language. https://www.jhipster.tech/jdl/entities-fields ...
cluis92's user avatar
  • 642
0 votes
0 answers
44 views

how can I add this child field to parentDTO?

I have this two entities entity Country { name String } ...
Troo TrIIs's user avatar
0 votes
0 answers
28 views

JHipster A OneToMany B relation fills the Set of Bs in A if project is generated with CLI, but not if generated with JDL

So I generated a monolithic project (Spring+Angular) with JHipster using the CLI, then created a Author and a Book entities with the CLI as well, with a OneToMany bi-directional relation between them (...
Amin's user avatar
  • 3
1 vote
1 answer
58 views

JHipster: configuring log levels through jdl file

I am looking for a way to configure the microservices generated by jhipster using jdl file to precide which level of loggins i want to have. Is there a way to do this using jdl file? Hope to shed some ...
Khadija's user avatar
  • 55
0 votes
1 answer
145 views

How can a table be a field type in jHipster jdl?

Tables I'm having a problem generating these tables using JHipster jdl with mysql. I need to know if I can create a field with a table as type or if a field can have a JSON type and how. If there's ...
Troo TrIIs's user avatar
4 votes
2 answers
496 views

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 ...
kk99's user avatar
  • 37
1 vote
2 answers
143 views

Entity relations JDL-Studio

I´m creating a project in jhipster and I need to access to this metrics and structure: Structure: Of the players we want to save: Nickname (unique) can only be formed by: letters, numbers and ...
FRANCISCO JAVIER SEGURA CRUZ 's user avatar
1 vote
1 answer
101 views

How to put @beanmapping ignored by default to false from JDL

I'm trying to generate my entities and dtos from a JDL file, and I need that mapper files put @BeanMapping(ignoreByDefault=false) for recovering all the properties of a relationship's dto and not only ...
Francisco Prado's user avatar
0 votes
1 answer
170 views

import-jdl fails when pasring entities

JHipster 7.7.0 I am trying to import the following JDL file: entity UploadedResource { fileName String required, owner String required, uploadedBy String required, uploadTime Instant ...
PeterB's user avatar
  • 71
0 votes
1 answer
107 views

jhipster generates required fields as not required in typescript types

I am using the jhipster generator to automatically generate Typescript types. Recently I've noticed that the generator has some behavior I did not expect. I have the following jdl code: entity ...
Soeren's user avatar
  • 15
0 votes
0 answers
75 views

Missing class DefaultPersistenceUnitManager

when I run ./mvnw liquibase:diff The error I get is [ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:4.2.2:diff (default-cli) on project engine-7: Execution default-cli of goal org....
Mrugesh Vaghela's user avatar
0 votes
0 answers
314 views

Problem during code generating after using JHipster JDL-Studio

Here is an error I get. Please help. I do not have any idea what to do at the moment. Thank you [...]$ jhipster jdl ~/Pobrane/awex.jdl INFO! Using JHipster version installed globally INFO! Executing ...
user avatar
0 votes
0 answers
75 views

Why my microservice does not automatically add user information?

I created application with the following jdl. And then, I ran the test with cypress when it was created successfully. Most of them pass but get some errors in entities that have relationship with User ...
Đặng Hữu Lộc's user avatar
0 votes
0 answers
83 views

Jhipster ParentDTO does not have list of Child DTO

am generating enties some thing like below, Person entity Employee { firstName String lastName String } entity Role { Name String } relationship OneToMany { Employee{role} to Role{...
Phani Kiran Gutha's user avatar
0 votes
1 answer
198 views

How to add custome/ java annotation in jdl JHipster Domain Language

With this code entity Person { id String name String post String } It will give me like @Id private String id; @Field("name") private String name; @Field("post") ...
Laxminarayan Sharma's user avatar
1 vote
1 answer
408 views

How to disable authenticationType in Jhipster?

I want to have no authenticationType, in final microservice, how do I achieve in JDL ? How to define such that there will no authentication ? application { config { baseName AweseomApp, ...
ajayramesh's user avatar
  • 3,476
1 vote
0 answers
291 views

How do I specify Map or List properties in JHipster JDL?

I've just started using JHipster to jumpstart a new Java/Spring Boot application. The new application needs to replicate entities and services from an existing app. One of the entities has List and ...
Terry Tompkins's user avatar
1 vote
0 answers
465 views

JHipster 7.0.1 Generating Application from Blueprint Error

I am getting below error when trying to use a locally-linked blueprint. The command I run is also below. Please advise. Environment: node --version -> v14.17.0 npm --version -> 6.14.13 jhipster -...
Amar Premsaran Patel's user avatar
1 vote
0 answers
87 views

JHIPSTER JDL: Confusion between join field and display field

I'm confused with the JHipster documentation here relationship (OneToMany | ManyToOne | OneToOne | ManyToMany) { <from entity>[{<relationship name>[(<display field>)]}] to <to ...
Carlos Garces's user avatar
1 vote
2 answers
1k views

How to make JHipster JDL Import to skip regenerating existing entities

I have a Monolith application generated by JHipster 6.7.0. My Local version of JHipster is 7.0.1. When I try to import a new entity using jhipster import-jdl app.jdl command, I am getting an issue ...
robinrjoe's user avatar
  • 319
1 vote
1 answer
831 views

jhipster import jdl error when importing JDL

I'm new in Jhipster. After install it last version 7 got this error when try to import JDL: ERROR! Cannot find module 'ajv/dist/compile/context' Try downgradring to version 6, but same error. Any ...
Rafael Urdaneta's user avatar
2 votes
1 answer
293 views

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 ...
domi's user avatar
  • 2,167
1 vote
0 answers
788 views

Jhipster import-jdl controlling what gets generated

I have a simple JHipster JDL file that looks like below entity Student { name String, age Integer } and I have this saved in a file called student.jh Now I am trying to make use of the JHipster ...
Krishnan Mahadevan's user avatar
1 vote
1 answer
1k views

Why do I get "Referential integrity constraint violation" with jpaDerivedIdentifier

After using Jhipster to generate app from jdl file, I got error below at app startup. I only got this issue when I used jpaDerivedIdentifier on the OneToOne relationship to user table. liquibase....
Menglun Li's user avatar
1 vote
1 answer
1k views

JHipster jdl import entity generator failing to create relationship between entities

I am generating entities using JHipster JDL. INFO! Using JHipster version installed locally in current project's node_modules 6.10.1 JDL used to generate entities entity Products{ name String ...
Mahesh Vemula's user avatar
0 votes
1 answer
69 views

Add functions in JDL Jhipster for angular project

For Example I want to add functions like onChange, focosout, onblur, onClick with passing extra parameter in jdl as entity Student { studentId Integer, studentRegNum String maxlength(50) (...
swamy.js's user avatar
1 vote
2 answers
203 views

Generate front-end based on database or java model

I need to migrate the front-end of an application to angular. I want to use jhipster and reuse all existing java back-end and database. My questions are: Is it possible to generate the front-end ...
l1nk's user avatar
  • 21
1 vote
1 answer
210 views

Splitting JDL file to extend model step by step

A freshly generated JHipster application contains already a basic model (e.g. with an User entity), lets call it m0. I extended m0 by defining a model m1 with the JHipster Domain Language (JDL) and ...
MoritzTheile's user avatar
0 votes
1 answer
963 views

"Parameter specified as non-null is null" is thrown when trying to reference one JDL entity from another entity in JHipster Kotlin

I'm trying to build a website in JDL Kotlin, but am having a problem with the JDL generated entities and edit forms. I have a JDL entity called Provider, an entity called Plan that needs to reference ...
StaticallyTypedRice's user avatar
0 votes
1 answer
506 views

Jhipster - Creating a relationship between JHI_User and another Entity ERROR

I generated a Jhipster configured hereafter (Spring boot / React ). In order to add some additional information to User Registration, I tried to follow this Tip published on Jhipster website : https:...
itsmarwen's user avatar
  • 131
0 votes
1 answer
180 views

How to run JHipster UAA with docker?

I've generated an application with this JDL deployment { deploymentType docker-compose appsFolders [gateway, uaa] dockerRepositoryName "10.1.10.58:5000" } application { config { baseName ...
Centroricerche rps's user avatar
0 votes
0 answers
137 views

Jhipster-UML taking too much time to generate jdl file

So after many struggles trying to install the proper and working version of jhipster-uml through github. I've created a microservice app through jhipster command then put a UMLDesigner class diagram ...
Ayman Erroutabi's user avatar
0 votes
1 answer
96 views

how can i import my file.jh in my jhister app

when i try to import jhipster-jdl.jh in my app, i have this error : Could not find jhipster-jdl.jh, make sure the path is correct. like this
Jean Camard's user avatar
0 votes
2 answers
708 views

Jhipster - JDL studio - relationship to User

I want to create an entity (called StudentInfo) that has a one-to-one relationship to the User entity (generated my jhipster). How can I do this using JDL-studio ? Do I just declare a relationship to ...
ROBlackSnail's user avatar
3 votes
1 answer
787 views

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 ...
Vicky's user avatar
  • 637
4 votes
1 answer
859 views

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 ...
lu_lu's user avatar
  • 133
1 vote
2 answers
2k views

Jhipster - setting up many to many relationship for user-entities

Want to create entity called Friendship and want to leverage the User entity that's part of Jhipster, But I keep getting this invalid-relationship error (full error below). User has friends (user ...
Satish's user avatar
  • 6,457
1 vote
1 answer
284 views

JHipster How to control entitie generation to microservice? or How to do JDL properly to get the entities generated into the right micorservice folder

I am trying to prototype a microservice application with JHipster and I have tried to collect all the information what I was able in order to do it properly, but it is not totally clear how to put ...
laci1210's user avatar
1 vote
0 answers
1k views

Convert Sql Schema to a JDL format

I am searching how to convert my PostgreSQL data base schema to a jdl format. I used a project that I found on the internet which uses the jooq library: https://github.com/Blackdread/sql-to-jdl, but ...
Hana_CH's user avatar
  • 95
3 votes
1 answer
2k views

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 ...
Paul Waldo's user avatar
  • 1,099