Hi,
I am trying to create the entity generated from UAA server to gateway. But I am getting the following error.
Error: Microservice name for the entity is not found. Entity cannot be generated!
Jhipster version is 6.2.0
Gateway server config is:-
details>
{ "generator-jhipster": { "promptValues": { "packageName": "com.star.gateway", "nativeLanguage": "en" }, "jhipsterVersion": "6.2.0", "applicationType": "gateway", "baseName": "StarGateway", "packageName": "com.star.gateway", "packageFolder": "com/star/gateway", "serverPort": "8080", "authenticationType": "uaa", "uaaBaseName": "StarAuthentication", "cacheProvider": "hazelcast", "enableHibernateCache": false, "websocket": "spring-websocket", "databaseType": "sql", "devDatabaseType": "mysql", "prodDatabaseType": "mysql", "searchEngine": "elasticsearch", "messageBroker": false, "serviceDiscoveryType": "eureka", "buildTool": "maven", "enableSwaggerCodegen": true, "useSass": true, "clientPackageManager": "npm", "clientFramework": "react", "clientTheme": "flatly", "clientThemeVariant": "primary", "testFrameworks": ["gatling", "cucumber", "protractor"], "jhiPrefix": "jhi", "entitySuffix": "", "dtoSuffix": "DTO", "otherModules": [], "enableTranslation": true, "nativeLanguage": "en", "languages": ["en", "hi", "ta", "te"], "blueprints": [] } }
UAA server config is:-
.yo-rc.json file
{ "generator-jhipster": { "promptValues": { "packageName": "com.star.auth", "nativeLanguage": "en" }, "jhipsterVersion": "6.2.0", "applicationType": "uaa", "baseName": "StarAuthentication", "packageName": "com.star.auth", "packageFolder": "com/star/auth", "serverPort": "9999", "authenticationType": "uaa", "cacheProvider": "hazelcast", "enableHibernateCache": false, "websocket": false, "databaseType": "sql", "devDatabaseType": "mysql", "prodDatabaseType": "mysql", "searchEngine": "elasticsearch", "messageBroker": false, "serviceDiscoveryType": "eureka", "buildTool": "maven", "enableSwaggerCodegen": true, "jwtSecretKey": "bXktc2VjcmV0LXRva2VuLXRvLWNoYW5nZS1pbi1wcm9kdWN0aW9uLWFuZC10by1rZWVwLWluLWEtc2VjdXJlLXBsYWNl", "testFrameworks": [ "gatling", "cucumber" ], "jhiPrefix": "jhi", "entitySuffix": "", "dtoSuffix": "DTO", "otherModules": [], "enableTranslation": true, "clientPackageManager": "npm", "nativeLanguage": "en", "languages": [ "en", "hi", "ta", "te" ], "blueprints": [], "skipClient": true } }
entityName.json
files generated in the .jhipster
directoryentity Institute { name String required, code String required unique, addressLine1 String required, addressLine2 String, city String required, state String required, country String required, pincode String required, latitute Double required min(-90) max(90), longitude Double required min(-180) max(180), status Status required } enum Status { ACTIVE, INACTIVE } dto Institute with mapstruct paginate Institute with pagination service Institute with serviceImpl search Institute with elasticsearch filter Institute
@dronavallisaikrishna :
.jhipster/Institute.json
file plz ?microserviceName
is missing ; if you put something like "microserviceName": "StarAuthentication"
, I think it should workI got the fix, I will do a PR soon
@pascalgrimaud Thanks. This worked. Can you please update me once after you update the jhipster codebase to handle this automatically.
thanks.
@dronavallisaikrishna : master branch contains the fix. So it will be in the next release
Most helpful comment
@pascalgrimaud Thanks. This worked. Can you please update me once after you update the jhipster codebase to handle this automatically.
thanks.