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.
120
questions
1
vote
2
answers
61
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 ...
1
vote
1
answer
31
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 ...
0
votes
0
answers
22
views
How to update Heroku Postgress database after updated JDL entities on Jhipster
I have deployed a Jhipster application in Heroku using PostgreSQL as database. First time I deployed, the entities I created on the JDL file have been created as table on Postgres. Now I have created ...
0
votes
1
answer
43
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 ...
0
votes
0
answers
24
views
jhipster payload case sensitivity issue?
I m facing a strange issue,
I have a shop model with offers. the shop is set on the offer using a "one to many" relation in JDL studio:
relationship OneToMany{
MModernShop{MModernOffer(...
0
votes
0
answers
36
views
Jhipster overwriting existing entities when trying to add new entities
When trying to add new entities in project trough jhipster import-jdl, jhipster is overwriting already existing entities. I'm using jhipster version 7.0.0.
This is the script with entities:
entity ...
0
votes
0
answers
50
views
JHipster Many to Many is not creating multiple select component
I'm creating a JHipster Application. I have defined the app in JDL studio:
application {
config{
baseName aplicacion
applicationType monolith
packageName com.aplicacion
...
0
votes
1
answer
51
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 ...
0
votes
0
answers
10
views
Modelling help users, many to many
I am trying to model a relationship in Jhipster and wondering the best way to do it.
It kind of goes like this.
Some users in the system are Customers
Some users in the system are Businesses
A ...
0
votes
0
answers
36
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....
0
votes
0
answers
155
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 ...
0
votes
0
answers
38
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 ...
0
votes
0
answers
42
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{...
0
votes
0
answers
131
views
JHipster: Elasticsearch: .yo-rc.json settings
My question briefly: If you want Elasticsearch in your JHipster application, do you need to include "serverSideOptions": ["searchEngine:elasticsearch"], in the .yo-rc.json config ...
0
votes
1
answer
91
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")
...
1
vote
1
answer
108
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,
...
0
votes
0
answers
25
views
JHIPSTER enum import misses in update.component.ts after generation/update from jdl
My JDL :
...
enum MyEnum {
NOK, OK
}
...
entity MyClass {
...
myEnum MyEnum
...
}
When generating from JDL, everything seems fine except in file myclass-update.component.ts which uses ...
1
vote
0
answers
130
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 ...
0
votes
0
answers
304
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 -...
1
vote
0
answers
53
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 ...
0
votes
2
answers
543
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 ...
1
vote
1
answer
573
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 ...
1
vote
1
answer
154
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 ...
1
vote
0
answers
515
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 ...
0
votes
1
answer
827
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....
0
votes
1
answer
795
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 ...
0
votes
1
answer
45
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) (...
1
vote
2
answers
143
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 ...
1
vote
1
answer
116
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 ...
0
votes
1
answer
624
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 ...
0
votes
1
answer
313
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:...
0
votes
1
answer
160
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 ...
0
votes
0
answers
103
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 ...
0
votes
1
answer
74
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
0
votes
2
answers
354
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 ...
1
vote
1
answer
333
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 ...
3
votes
1
answer
486
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 ...
1
vote
2
answers
1k
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 ...
1
vote
1
answer
195
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 ...
1
vote
0
answers
756
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 ...
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 ...
1
vote
0
answers
212
views
JDL: Found groupable relationship "OneToOne"
I am new to JHipster and am creating a new project with the following Entity definition:
enum AccountType {
CHECKING, SAVINGS
}
enum TransactionType {
CHECK, DEPOSIT, WITHDRAWAL
}
enum ...
0
votes
1
answer
46
views
Jhipster JDL Is There CI-CD language that can be used in the JDL Like Deployment
I noticed that the generator supports jhipster ci-cd & the jdl supports deployment, but could not find any documentation on whether the jdl supports ci-cd & if it does what the language is. ...
0
votes
0
answers
128
views
Error while using JDL application options: got value 'elasticsearch' for 'search'
I'm testing out jHipster's JDL application options, but I can't get it to work, I think I followed the documentation on https://www.jhipster.tech/jdl/#application_options for the specific error I'm ...
1
vote
0
answers
353
views
OpenAPI / JDL and Avro schema: what is the best practice to generate entities/object definitions?
I am building a microservice piece of software with the API-first approach, I would like to re-use some of the entities in some other microservices. I can generate the object definitions at 3 ...
0
votes
1
answer
60
views
CRUd issues with Jhipster relationships
I am importing the following jdl to generate a simple jhipster monolith.
I inspected the h2 db after startup and it seems perfect, however when i try to use the ui to create new InventryModel or ...
0
votes
1
answer
608
views
Relationship One-To-Many in JDL
I'm trying to create job table have multi-image in JDL
I used to one-to-many relationship but jhipster warnning:
WARNING! otherEntityRelationshipName is missing in .jhipster/Attachment.json for ...
0
votes
0
answers
36
views
JDL: Multiple Menu
I trying to create multiple menu category using JDL. In one CategoryItem have parentID.
I already created JDL like:
microservice * with Category
entity CategoryItem{
name String required
}
...
0
votes
1
answer
346
views
declaring own datatypes with JDL
I want to declare my own datatype in order to use it in an other entity.
JDL doesn't seem to recognize the entities that I already declared. How can I declare my own datatypes?
entity Adress{
...
3
votes
1
answer
84
views
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"),...