Comments (5)
Please provide steps to reproduce this issue.
from jdl-studio.
I had to prefix the entity Account with Plant.. see pics.. JDL studio seemed to tell me it was ok with 'Account' as entity name.. then dloaded and moved jdl to backend and ran rnhipster jdl from the client referencing the jdl in the backend.
sooooo rnhipster jdl ran and parsed and complained about the word Account
of course jdl studio may intend for reasons to not check for reserved word usage,, thats fine.. all coolio.
of course I have upper case in the App properties for 'React' and postgres... which the JDL studio didnt tell me the parser would complain about.. thats trivial.. quick edit.. but studio could check on those properties.
from jdl-studio.
Can you please include your JDL?
from jdl-studio.
below is the correction to pass the rnhipster jdl parser. the original simply had the word 'Account' not 'PlantAccount' and of course I had 'React' and 'Postgres' not full lower case.. and the JDL studio didnt flag the caps on those.
still learning jdl of course.
cheers.
application {
config {
baseName Plantbackend,
applicationType monolith,
packageName com.plantidote.plantapi,
authenticationType jwt,
prodDatabaseType postgresql,
clientFramework react
}
entities *
}
entity PlantAccount {
accountid String required
profilesmartcontractid String required
}
entity Accounttype {
accounttype String required
}
entity Preferences {
preferenceid String required
}
entity Datapermissions{
coretoplatform Boolean required
noncoretoplatform Boolean required
opennessmeasure Integer required
}
relationship OneToMany {
Accounttype{Account(accountid)} to PlantAccount{Accounttype(accounttype)}
PlantAccount{Preferences(preferenceid)} to Preferences{Account(accountid)}
PlantAccount to Datapermissions
}
enum Language {
ENGLISH,
SPANISH
}
dto PlantAccount, Accounttype, Preferences, Datapermissions with mapstruct
service PlantAccount, Accounttype, Preferences, Datapermissions with serviceClass
paginate PlantAccount with infinite-scroll
paginate PlantAccount with pagination
from jdl-studio.
arhhh.. the jdl should not include the application config IF im just importing new entities after a initial app gen.. this aspect is not truly specific to this issue though
from jdl-studio.
Related Issues (20)
- Automatically Triggering JHipster Online Submodule Update
- v2: Add build scripts for deployment HOT 1
- JDL-Studio: Fix loading of user selected JDL HOT 1
- JDL-Studio: Fix loading of user JDLs HOT 1
- JDL-Studio: Fix JHipster online authentication
- Warn when switching to different JH online JDLs with unsaved changes
- Automate to build and push to gh-pages when commit made to src HOT 2
- Diagram is unreadable after update HOT 1
- Aggregation diamond is in the wrong end of the relation HOT 2
- JDL Studio doesn't show my .jdl files that I saved HOT 2
- Is there a way to use characters such as "@" and "$" at the beginning of the attribute of Angular/Typescript interface/class?
- Change color of line number in JDL-Studio
- JDL Studio HOT 4
- jdl-studio out of date with jhipster .jdl language: @Id vs with jpaDerivedIdentifier HOT 1
- Relationship Option 'builtInEntity' not recognized by JDL-Studio HOT 1
- New JDL studio link not working HOT 1
- Enum values are missing HOT 1
- JDL demo Location has invalid field type HOT 2
- URL in HomePage Needs to be Updated to Point to New Version HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jdl-studio.