jhipster import-jdl not generating entities from jdl file -


i have created jdl file using jdl-studio. tied create entities jdl file using jdl-import.

following snippet of cmd terminal:

d:\spring-boot\examples\espressob>yo jhipster:import-jdl ./jhipster-jdl.jh jdl being imported. d:\spring-boot\examples\espressob> 

the problem

it prints jdl file being imported, thats it. have checked if generated code entities jdl file, unfortunately did not.


env details

.yo-rc.json file content :

{   "generator-jhipster": {     "jhipsterversion": "3.4.2",     "basename": "espressob",     "packagename": "com.iwantunlimited.espressob",     "packagefolder": "com/iwantunlimited/espressob",     "serverport": "8080",     "authenticationtype": "jwt",     "hibernatecache": "hazelcast",     "clusteredhttpsession": "hazelcast",     "websocket": "spring-websocket",     "databasetype": "sql",     "devdatabasetype": "postgresql",     "proddatabasetype": "postgresql",     "searchengine": "elasticsearch",     "buildtool": "maven",     "enablesocialsignin": true,     "jwtsecretkey": "790501d7e04040394e33964a4ee715408ec0408f",     "usesass": true,     "applicationtype": "monolith",     "testframeworks": [       "gatling",       "cucumber",       "protractor"     ],     "jhiprefix": "jhi",     "enabletranslation": true,     "nativelanguage": "en",     "languages": [       "en",       "fr",       "hi"     ]   } } 

jhipster-jdl.jh file content:

entity insurancecategory {     name string required,     description string,     isactive boolean,     createddate zoneddatetime,     modifieddate zoneddatetime, } relationship manytoone {     insurancecategory{createdby} user } relationship manytoone {     insurancecategory{modifiedby} user }  entity insuranceprovider {     name string required,     isactive boolean,     createddate zoneddatetime,     modifieddate zoneddatetime, } relationship manytoone {     insuranceprovider{createdby} user } relationship manytoone {     insuranceprovider{modifiedby} user } relationship manytomany {     insurancecategory{provider} insuranceprovider{category} }  entity policy {     name string required,     isactive boolean,     createddate zoneddatetime,     modifieddate zoneddatetime, } relationship manytoone {     policy{createdby} user } relationship manytoone {     policy{modifiedby} user }  relationship onetomany {     insurancecategory{policy} policy }  relationship onetomany {     insuranceprovider{policy} policy }  dto mapstruct 

tried :

  1. removing relationships user entity -> not working

  2. re arranging sequence of entries in jdl file (first entities, relationships) -> not working

i try jdl-file jhipster 3.6.1 version , works following warning:

$ yo jhipster:import-jdl ./jhipster-jdl.jh   jdl being parsed.   **warning:  entity name 'user' used: 'user' entity created default jhipster. relationships toward kept attributes , relationships disregarded.**   writing entity json files.   generating entities... 

also recommend removing commas @ end of last field in entities definitions:

entity insuranceprovider {       name string required,       isactive boolean,       createddate zoneddatetime,       modifieddate zoneddatetime   } 

instead of:

entity insuranceprovider {       name string required,       isactive boolean,       createddate zoneddatetime,       modifieddate zoneddatetime , } 

Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -