Giter VIP home page Giter VIP logo

Comments (5)

mraible avatar mraible commented on June 22, 2024

Please provide steps to reproduce this issue.

from jdl-studio.

johnda98 avatar johnda98 commented on June 22, 2024

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.

just a fyi.. no biggy
Screen Shot 2021-11-08 at 10 21 11 AM

Screen Shot 2021-11-08 at 10 31 15 AM

from jdl-studio.

mraible avatar mraible commented on June 22, 2024

Can you please include your JDL?

from jdl-studio.

johnda98 avatar johnda98 commented on June 22, 2024

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.

johnda98 avatar johnda98 commented on June 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.