Open OmarHawk opened 7 months ago
JHipster has completed the sample check
.yo-rc.json
: valid
Entities JDL: error
Application:
Frontend check: skipped
Backend check: skipped
E2E check: skipped
This check uses jhipster info
output from the issue description to generate the sample.
Bug report that does not contain this information will be marked as invalid.
Since I just stumpled upon it again, thought I'd just ask again, if there is some easy way for me to contribute to get this fixed? The expressions I do have to build now for our applications get more and more complicated (involving like 10 fields and therefore 30x Character.toString(' ') calls for the separator chars), making my jdl super messy.
I saw, there was once a merge request open, but it never was finished... if you think that it is feasible to support, I'd give it a try, but it seems like it involves JDL language parsing changes, which I'm not keen in.
Overview of the issue
Hi,
we are using \@MapstructExpression to generate some combined field values and want to use some easy String concatenation in the expression so that the final expression from an entity like this:
looks like this:
Unfortunately, this won't work. It will produce following kind of error when running the jdl command:
We also tried more escaping characters (triple \) but that won't work either.
Motivation for or Use Case
The only woraround for us at the moment to avoid using the " char is wrapping each character of the quoted String like this:
Character.toString('|')
and that becomes quite easily really messy...
Reproduce the error
Related issues
Nothing found.
Suggest a Fix
JHipster Version(s)
8.1.0
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
Environment and Tools
openjdk version "17.0.7" 2023-04-18 LTS OpenJDK Runtime Environment (Red_Hat-17.0.7.0+7-1) (build 17.0.7+7-LTS) OpenJDK 64-Bit Server VM (Red_Hat-17.0.7.0+7-1) (build 17.0.7+7-LTS, mixed mode, sharing)
git version 2.43.0.windows.1
node: v18.19.0 npm: 10.2.3
Docker version 24.0.2-rd, build e63f5fa
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Browsers and Operating System