jhipster / generator-jhipster

JHipster is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures.
https://www.jhipster.tech
Apache License 2.0
21.5k stars 4.02k forks source link

Failed to generate gateway entities from microservie #4370

Closed davidweianibone closed 7 years ago

davidweianibone commented 7 years ago
Overview of the issue

Trying to generate gateway entities from an existing microservice ends with error: .jhipster/Business.json not found in /Users/david/git/AniBoneMcrServic/

I checked and the file exists in the specific location. The file and folder that were created are hidden! Could be this is the issue ?

Motivation for or Use Case

Cannot create entities for the gateway

Reproduce the error
  1. Use the attached zipped uml to generate entities in the microserice.
  2. In the Gateway root folder run the command: yo jhipster:entity Business
    Related issues

Issue #3599

JHipster Version(s)
JHipster Version(s)
ani-bone-gate-way@0.0.0 /Users/david/git/AniBoneGateWay
└── generator-jhipster@3.9.1 
JHipster configuration, a .yo-rc.json file generated in the root folder
{
  "generator-jhipster": {
    "jhipsterVersion": "3.9.1",
    "baseName": "AniBoneGateWay",
    "packageName": "com.anibone",
    "packageFolder": "com/anibone",
    "serverPort": "8080",
    "authenticationType": "jwt",
    "hibernateCache": "ehcache",
    "clusteredHttpSession": "hazelcast",
    "websocket": "spring-websocket",
    "databaseType": "sql",
    "devDatabaseType": "mysql",
    "prodDatabaseType": "mysql",
    "searchEngine": "elasticsearch",
    "messageBroker": false,
    "buildTool": "maven",
    "enableSocialSignIn": false,
    "jwtSecretKey": "SECRET KEY",
    "useSass": true,
    "applicationType": "gateway",
    "testFrameworks": [
      "gatling",
      "cucumber",
      "protractor"
    ],
    "jhiPrefix": "jhi",
    "enableTranslation": false,
    "serviceDiscoveryType": "eureka"
  }
}
Entity configuration(s) entityName.json files generated in the .jhipster directory

ls: no such file or directory: .jhipster/*.json

Browsers and Operating System

java version "1.8.0_101" Java(TM) SE Runtime Environment (build 1.8.0_101-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

git version 2.10.0

node: v6.9.1

npm: 3.10.8

bower: 1.7.9

gulp: [21:11:39] CLI version 1.2.2 [21:11:39] Local version 3.9.1

yeoman: 1.8.5

Docker version 1.12.1, build 6f9534c

docker-compose version 1.8.0, build f3628c7

Entity configuration(s) entityName.json files generated in the .jhipster directory

anibone.uml.zip

Browsers and Operating System

Mac OS Sierra

pascalgrimaud commented 7 years ago

@davidweianibone : can you show your microservice configuration too plz ?

davidweianibone commented 7 years ago

Sure

JHipster Version(s)
/Users/david/git/AniBoneMcrService
└── (empty)
JHipster configuration, a .yo-rc.json file generated in the root folder
{
  "generator-jhipster": {
    "jhipsterVersion": "3.9.1",
    "baseName": "AniBoneMcrService",
    "packageName": "com.anibone",
    "packageFolder": "com/anibone",
    "serverPort": "8081",
    "authenticationType": "jwt",
    "hibernateCache": "ehcache",
    "clusteredHttpSession": false,
    "websocket": false,
    "databaseType": "sql",
    "devDatabaseType": "mysql",
    "prodDatabaseType": "mysql",
    "searchEngine": "elasticsearch",
    "messageBroker": false,
    "buildTool": "maven",
    "enableSocialSignIn": false,
    "jwtSecretKey": "SECRET KEY",
    "enableTranslation": false,
    "applicationType": "microservice",
    "testFrameworks": [
      "gatling",
      "cucumber"
    ],
    "jhiPrefix": "jhi",
    "skipClient": true,
    "skipUserManagement": true,
    "serviceDiscoveryType": "eureka"
  }
}
Entity configuration(s) entityName.json files generated in the .jhipster directory

AbUser.json

{
  "fluentMethods": true,
  "relationships": [
    {
      "relationshipType": "one-to-many",
      "relationshipValidateRules": "required",
      "relationshipName": "projects",
      "otherEntityName": "project",
      "otherEntityRelationshipName": "abUser"
    },
    {
      "relationshipType": "one-to-one",
      "relationshipValidateRules": "required",
      "relationshipName": "addresss",
      "otherEntityName": "address",
      "otherEntityField": "id",
      "ownerSide": true,
      "otherEntityRelationshipName": "abUser"
    },
    {
      "relationshipType": "one-to-one",
      "relationshipValidateRules": "required",
      "relationshipName": "personalZones",
      "otherEntityName": "personalZone",
      "otherEntityField": "id",
      "ownerSide": true,
      "otherEntityRelationshipName": "abUser"
    }
  ],
  "fields": [
    {
      "fieldName": "mail",
      "fieldType": "String"
    },
    {
      "fieldName": "endStatusDate",
      "fieldType": "LocalDate"
    },
    {
      "fieldName": "pass",
      "fieldType": "String"
    },
    {
      "fieldName": "cellPhone",
      "fieldType": "String"
    },
    {
      "fieldName": "userName",
      "fieldType": "String"
    },
    {
      "fieldName": "firstName",
      "fieldType": "String"
    },
    {
      "fieldName": "homePhone",
      "fieldType": "String"
    },
    {
      "fieldName": "status",
      "fieldType": "UserStatusEnum",
      "fieldValues": "NEW,ACTIVE,CANCELED,SUSPENDED"
    },
    {
      "fieldName": "startStatusDate",
      "fieldType": "LocalDate"
    },
    {
      "fieldName": "lastName",
      "fieldType": "String"
    },
    {
      "fieldName": "userRole",
      "fieldType": "UserRole",
      "fieldValues": "ADMIN,CONSUMER,GUEST,BUSINESS"
    }
  ],
  "changelogDate": "20161015161335",
  "dto": "mapstruct",
  "pagination": "no",
  "service": "no",
  "entityTableName": "ab_user"
}

Address.json

{
  "fluentMethods": true,
  "relationships": [],
  "fields": [
    {
      "fieldName": "city",
      "fieldType": "String"
    },
    {
      "fieldName": "street",
      "fieldType": "String"
    },
    {
      "fieldName": "houseNum",
      "fieldType": "String"
    },
    {
      "fieldName": "zip",
      "fieldType": "String"
    },
    {
      "fieldName": "country",
      "fieldType": "String"
    }
  ],
  "changelogDate": "20161015161321",
  "dto": "mapstruct",
  "pagination": "no",
  "service": "no",
  "entityTableName": "address"
}

Article.json

{
  "fluentMethods": true,
  "relationships": [
    {
      "relationshipName": "personalZone",
      "otherEntityName": "personalZone",
      "relationshipType": "many-to-one",
      "otherEntityField": "id"
    },
    {
      "relationshipType": "one-to-one",
      "relationshipValidateRules": "required",
      "relationshipName": "abUsers",
      "otherEntityName": "abUser",
      "otherEntityField": "id",
      "ownerSide": true,
      "otherEntityRelationshipName": "article"
    },
    {
      "relationshipName": "articleCategory",
      "otherEntityName": "articleCategory",
      "relationshipType": "many-to-one",
      "otherEntityField": "id"
    }
  ],
  "fields": [
    {
      "fieldName": "issueDate",
      "fieldType": "LocalDate"
    },
    {
      "fieldName": "title",
      "fieldType": "String"
    },
    {
      "fieldName": "description",
      "fieldType": "String"
    },
    {
      "fieldName": "article",
      "fieldType": "String"
    }
  ],
  "changelogDate": "20161015161325",
  "dto": "mapstruct",
  "pagination": "no",
  "service": "no",
  "entityTableName": "article"
}

ArticleCategory.json

{
  "fluentMethods": true,
  "relationships": [
    {
      "relationshipType": "one-to-many",
      "relationshipValidateRules": "required",
      "relationshipName": "articles",
      "otherEntityName": "article",
      "otherEntityRelationshipName": "articleCategory"
    }
  ],
  "fields": [
    {
      "fieldName": "name",
      "fieldType": "String"
    },
    {
      "fieldName": "photo",
      "fieldType": "String"
    },
    {
      "fieldName": "description",
      "fieldType": "String"
    }
  ],
  "changelogDate": "20161015161330",
  "dto": "mapstruct",
  "pagination": "no",
  "service": "no",
  "entityTableName": "article_category"
}

AssetLocation.json

{
  "fluentMethods": true,
  "relationships": [
    {
      "relationshipType": "one-to-one",
      "relationshipValidateRules": "required",
      "relationshipName": "addresss",
      "otherEntityName": "address",
      "otherEntityField": "id",
      "ownerSide": true,
      "otherEntityRelationshipName": "assetLocation"
    }
  ],
  "fields": [
    {
      "fieldName": "plotNum",
      "fieldType": "Integer"
    },
    {
      "fieldName": "blockNum",
      "fieldType": "Integer"
    },
    {
      "fieldName": "propertySize",
      "fieldType": "Integer"
    },
    {
      "fieldName": "propertyNum",
      "fieldType": "Integer"
    },
    {
      "fieldName": "issueId",
      "fieldType": "Integer"
    }
  ],
  "changelogDate": "20161015161329",
  "dto": "mapstruct",
  "pagination": "no",
  "service": "no",
  "entityTableName": "asset_location"
}

AssetSpecs.json

{
  "fluentMethods": true,
  "relationships": [
    {
      "relationshipType": "one-to-one",
      "relationshipValidateRules": "required",
      "relationshipName": "assetLocations",
      "otherEntityName": "assetLocation",
      "otherEntityField": "id",
      "ownerSide": true,
      "otherEntityRelationshipName": "assetSpecs"
    }
  ],
  "fields": [
    {
      "fieldName": "homeArea",
      "fieldType": "String"
    },
    {
      "fieldName": "numOfFloors",
      "fieldType": "Integer"
    },
    {
      "fieldName": "landPurchaseMethod",
      "fieldType": "LandPurchaseMethodEnum",
      "fieldValues": "GOVERMENT,PRIVATE,NONE"
    },
    {
      "fieldName": "constructionStandard",
      "fieldType": "ValueStandardEnum",
      "fieldValues": "HEIGH,MEDIUM,LOW"
    },
    {
      "fieldName": "constructionShelterStandard",
      "fieldType": "ValueStandardEnum",
      "fieldValues": "HEIGH,MEDIUM,LOW"
    },
    {
      "fieldName": "propertyValue",
      "fieldType": "Integer"
    },
    {
      "fieldName": "hasShelter",
      "fieldType": "Boolean"
    },
    {
      "fieldName": "shleterArea",
      "fieldType": "Integer"
    },
    {
      "fieldName": "totalBudget",
      "fieldType": "Integer"
    }
  ],
  "changelogDate": "20161015161326",
  "dto": "mapstruct",
  "pagination": "no",
  "service": "no",
  "entityTableName": "asset_specs"
}

Business.json

{
  "fluentMethods": true,
  "relationships": [
    {
      "relationshipType": "one-to-one",
      "relationshipValidateRules": "required",
      "relationshipName": "addresss",
      "otherEntityName": "address",
      "otherEntityField": "id",
      "ownerSide": true,
      "otherEntityRelationshipName": "business"
    },
    {
      "relationshipType": "one-to-many",
      "relationshipValidateRules": "required",
      "relationshipName": "ranks",
      "otherEntityName": "rank",
      "otherEntityRelationshipName": "business"
    },
    {
      "relationshipType": "one-to-many",
      "relationshipValidateRules": "required",
      "relationshipName": "regions",
      "otherEntityName": "region",
      "otherEntityRelationshipName": "business"
    },
    {
      "relationshipType": "one-to-many",
      "relationshipValidateRules": "required",
      "relationshipName": "abDocs",
      "otherEntityName": "doc",
      "otherEntityRelationshipName": "business"
    },
    {
      "relationshipType": "one-to-one",
      "relationshipValidateRules": "required",
      "relationshipName": "abUsers",
      "otherEntityName": "abUser",
      "otherEntityField": "id",
      "ownerSide": true,
      "otherEntityRelationshipName": "business"
    },
    {
      "relationshipName": "personalZone",
      "otherEntityName": "personalZone",
      "relationshipType": "many-to-one",
      "otherEntityField": "id"
    },
    {
      "relationshipName": "businessCategory",
      "otherEntityName": "businessCategory",
      "relationshipType": "many-to-one",
      "otherEntityField": "id"
    }
  ],
  "fields": [
    {
      "fieldName": "name",
      "fieldType": "String"
    },
    {
      "fieldName": "workPhone",
      "fieldType": "String"
    },
    {
      "fieldName": "fax",
      "fieldType": "String"
    },
    {
      "fieldName": "workMail",
      "fieldType": "String"
    },
    {
      "fieldName": "siteUrl",
      "fieldType": "String"
    },
    {
      "fieldName": "description",
      "fieldType": "String"
    }
  ],
  "changelogDate": "20161015161323",
  "dto": "mapstruct",
  "pagination": "no",
  "service": "no",
  "entityTableName": "business"
}

BusinessCategory.json

{
  "fluentMethods": true,
  "relationships": [
    {
      "relationshipType": "one-to-many",
      "relationshipValidateRules": "required",
      "relationshipName": "businesss",
      "otherEntityName": "business",
      "otherEntityRelationshipName": "businessCategory"
    },
    {
      "relationshipName": "businessCategory",
      "otherEntityName": "businessCategory",
      "relationshipType": "many-to-one",
      "otherEntityField": "id"
    },
    {
      "relationshipType": "one-to-many",
      "relationshipValidateRules": "required",
      "relationshipName": "businessCategorys",
      "otherEntityName": "businessCategory",
      "otherEntityRelationshipName": "businessCategory"
    }
  ],
  "fields": [
    {
      "fieldName": "name",
      "fieldType": "String"
    },
    {
      "fieldName": "icon",
      "fieldType": "String"
    },
    {
      "fieldName": "color",
      "fieldType": "String"
    }
  ],
  "changelogDate": "20161015161331",
  "dto": "mapstruct",
  "pagination": "no",
  "service": "no",
  "entityTableName": "business_category"
}

Doc.json

{
  "fluentMethods": true,
  "relationships": [
    {
      "relationshipName": "task",
      "otherEntityName": "task",
      "relationshipType": "many-to-one",
      "otherEntityField": "id"
    },
    {
      "relationshipName": "business",
      "otherEntityName": "business",
      "relationshipType": "many-to-one",
      "otherEntityField": "id"
    }
  ],
  "fields": [
    {
      "fieldName": "name",
      "fieldType": "String"
    },
    {
      "fieldName": "description",
      "fieldType": "String"
    },
    {
      "fieldName": "updateDate",
      "fieldType": "LocalDate"
    },
    {
      "fieldName": "isLogo",
      "fieldType": "Boolean"
    }
  ],
  "changelogDate": "20161015161334",
  "dto": "mapstruct",
  "pagination": "no",
  "service": "no",
  "entityTableName": "doc"
}

Finance.json

{
  "fluentMethods": true,
  "relationships": [
    {
      "relationshipName": "project",
      "otherEntityName": "project",
      "relationshipType": "many-to-one",
      "otherEntityField": "id"
    }
  ],
  "fields": [
    {
      "fieldName": "fundSource",
      "fieldType": "FundSourceEnum",
      "fieldValues": "SELF,MORGAGE,LOAN,OTHER"
    },
    {
      "fieldName": "sum",
      "fieldType": "Integer"
    },
    {
      "fieldName": "months",
      "fieldType": "Integer"
    },
    {
      "fieldName": "intrest",
      "fieldType": "Integer"
    }
  ],
  "changelogDate": "20161015161327",
  "dto": "mapstruct",
  "pagination": "no",
  "service": "no",
  "entityTableName": "finance"
}

Payment.json

{
  "fluentMethods": true,
  "relationships": [
    {
      "relationshipName": "subTask",
      "otherEntityName": "subTask",
      "relationshipType": "many-to-one",
      "otherEntityField": "id"
    }
  ],
  "fields": [
    {
      "fieldName": "sumPayed",
      "fieldType": "Integer"
    },
    {
      "fieldName": "paymentDate",
      "fieldType": "LocalDate"
    }
  ],
  "changelogDate": "20161015161328",
  "dto": "mapstruct",
  "pagination": "no",
  "service": "no",
  "entityTableName": "payment"
}

PersonalZone.json

{
  "fluentMethods": true,
  "relationships": [
    {
      "relationshipType": "one-to-many",
      "relationshipValidateRules": "required",
      "relationshipName": "businesss",
      "otherEntityName": "business",
      "otherEntityRelationshipName": "personalZone"
    },
    {
      "relationshipType": "one-to-many",
      "relationshipValidateRules": "required",
      "relationshipName": "articles",
      "otherEntityName": "article",
      "otherEntityRelationshipName": "personalZone"
    }
  ],
  "fields": [],
  "changelogDate": "20161015161324",
  "dto": "mapstruct",
  "pagination": "no",
  "service": "no",
  "entityTableName": "personal_zone"
}

Project.json

{
  "fluentMethods": true,
  "relationships": [
    {
      "relationshipType": "one-to-many",
      "relationshipValidateRules": "required",
      "relationshipName": "tasks",
      "otherEntityName": "task",
      "otherEntityRelationshipName": "project"
    },
    {
      "relationshipType": "one-to-one",
      "relationshipValidateRules": "required",
      "relationshipName": "projectDetailss",
      "otherEntityName": "assetSpecs",
      "otherEntityField": "id",
      "ownerSide": true,
      "otherEntityRelationshipName": "project"
    },
    {
      "relationshipType": "one-to-many",
      "relationshipValidateRules": "required",
      "relationshipName": "finances",
      "otherEntityName": "finance",
      "otherEntityRelationshipName": "project"
    },
    {
      "relationshipName": "abUser",
      "otherEntityName": "abUser",
      "relationshipType": "many-to-one",
      "otherEntityField": "id"
    }
  ],
  "fields": [
    {
      "fieldName": "projectType",
      "fieldType": "ProjectTypeEnum",
      "fieldValues": "CONSTRUCTION,RENOVATION,FROM_CONTRACTOR"
    },
    {
      "fieldName": "name",
      "fieldType": "String"
    },
    {
      "fieldName": "startStatusDate",
      "fieldType": "LocalDate"
    },
    {
      "fieldName": "endStatusDate",
      "fieldType": "LocalDate"
    },
    {
      "fieldName": "siUnits",
      "fieldType": "SiUnitsEnum",
      "fieldValues": "INTERNATIONAL,IMPERIAL"
    },
    {
      "fieldName": "contructMethod",
      "fieldType": "ContructMethodEnum",
      "fieldValues": "KEY,MULTI,COMBINE,SELF"
    },
    {
      "fieldName": "listView",
      "fieldType": "Boolean"
    },
    {
      "fieldName": "photo",
      "fieldType": "String"
    }
  ],
  "changelogDate": "20161015161319",
  "dto": "mapstruct",
  "pagination": "no",
  "service": "no",
  "entityTableName": "project"
}

Rank.json

{
  "fluentMethods": true,
  "relationships": [
    {
      "relationshipName": "business",
      "otherEntityName": "business",
      "relationshipType": "many-to-one",
      "otherEntityField": "id"
    },
    {
      "relationshipType": "one-to-one",
      "relationshipValidateRules": "required",
      "relationshipName": "abUsers",
      "otherEntityName": "abUser",
      "otherEntityField": "id",
      "ownerSide": true,
      "otherEntityRelationshipName": "rank"
    }
  ],
  "fields": [
    {
      "fieldName": "scor",
      "fieldType": "Integer"
    },
    {
      "fieldName": "rankDate",
      "fieldType": "LocalDate"
    },
    {
      "fieldName": "feedback",
      "fieldType": "String"
    }
  ],
  "changelogDate": "20161015161332",
  "dto": "mapstruct",
  "pagination": "no",
  "service": "no",
  "entityTableName": "rank"
}

Region.json

{
  "fluentMethods": true,
  "relationships": [
    {
      "relationshipName": "business",
      "otherEntityName": "business",
      "relationshipType": "many-to-one",
      "otherEntityField": "id"
    },
    {
      "relationshipName": "region",
      "otherEntityName": "region",
      "relationshipType": "many-to-one",
      "otherEntityField": "id"
    },
    {
      "relationshipType": "one-to-many",
      "relationshipValidateRules": "required",
      "relationshipName": "regions",
      "otherEntityName": "region",
      "otherEntityRelationshipName": "region"
    }
  ],
  "fields": [
    {
      "fieldName": "regionName",
      "fieldType": "String"
    }
  ],
  "changelogDate": "20161015161333",
  "dto": "mapstruct",
  "pagination": "no",
  "service": "no",
  "entityTableName": "region"
}

SubTask.json

{
  "fluentMethods": true,
  "relationships": [
    {
      "relationshipName": "task",
      "otherEntityName": "task",
      "relationshipType": "many-to-one",
      "otherEntityField": "id"
    },
    {
      "relationshipType": "one-to-many",
      "relationshipValidateRules": "required",
      "relationshipName": "payments",
      "otherEntityName": "payment",
      "otherEntityRelationshipName": "subTask"
    },
    {
      "relationshipType": "one-to-one",
      "relationshipValidateRules": "required",
      "relationshipName": "businesss",
      "otherEntityName": "business",
      "otherEntityField": "id",
      "ownerSide": true,
      "otherEntityRelationshipName": "subTask"
    },
    {
      "relationshipType": "one-to-one",
      "relationshipValidateRules": "required",
      "relationshipName": "articles",
      "otherEntityName": "article",
      "otherEntityField": "id",
      "ownerSide": true,
      "otherEntityRelationshipName": "subTask"
    }
  ],
  "fields": [
    {
      "fieldName": "subTaskStatus",
      "fieldType": "TaskStatusEnum",
      "fieldValues": "COMPLETED,INPROGRESS,NEW,NOT_ASSIGNED"
    },
    {
      "fieldName": "lastVisitDate",
      "fieldType": "LocalDate"
    },
    {
      "fieldName": "lastUpdateDate",
      "fieldType": "LocalDate"
    },
    {
      "fieldName": "subTaskType",
      "fieldType": "SubTaskTypeEnum",
      "fieldValues": "MANDATORY,OPTIONAL,PROPERTY,CUSTOMIZE"
    },
    {
      "fieldName": "name",
      "fieldType": "String"
    },
    {
      "fieldName": "estimateSystemCost",
      "fieldType": "Integer"
    },
    {
      "fieldName": "userCost",
      "fieldType": "Integer"
    },
    {
      "fieldName": "note",
      "fieldType": "String"
    },
    {
      "fieldName": "tip",
      "fieldType": "String"
    },
    {
      "fieldName": "indx",
      "fieldType": "Integer"
    }
  ],
  "changelogDate": "20161015161322",
  "dto": "mapstruct",
  "pagination": "no",
  "service": "no",
  "entityTableName": "sub_task"
}

Task.json

{
  "fluentMethods": true,
  "relationships": [
    {
      "relationshipName": "project",
      "otherEntityName": "project",
      "relationshipType": "many-to-one",
      "otherEntityField": "id"
    },
    {
      "relationshipType": "one-to-many",
      "relationshipValidateRules": "required",
      "relationshipName": "subTasks",
      "otherEntityName": "subTask",
      "otherEntityRelationshipName": "task"
    },
    {
      "relationshipType": "one-to-many",
      "relationshipValidateRules": "required",
      "relationshipName": "abDocs",
      "otherEntityName": "doc",
      "otherEntityRelationshipName": "task"
    }
  ],
  "fields": [
    {
      "fieldName": "taskStatus",
      "fieldType": "TaskStatusEnum",
      "fieldValues": "COMPLETED,INPROGRESS,NEW,NOT_ASSIGNED"
    },
    {
      "fieldName": "name",
      "fieldType": "String"
    },
    {
      "fieldName": "valueStandard",
      "fieldType": "ValueStandardEnum",
      "fieldValues": "HEIGH,MEDIUM,LOW"
    },
    {
      "fieldName": "icon",
      "fieldType": "String"
    },
    {
      "fieldName": "color",
      "fieldType": "String"
    },
    {
      "fieldName": "indx",
      "fieldType": "Integer"
    },
    {
      "fieldName": "listView",
      "fieldType": "Boolean"
    }
  ],
  "changelogDate": "20161015161320",
  "dto": "mapstruct",
  "pagination": "no",
  "service": "no",
  "entityTableName": "task"
}
Browsers and Operating System

java version "1.8.0_101" Java(TM) SE Runtime Environment (build 1.8.0_101-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

git version 2.10.0

node: v6.9.1

npm: 3.10.8

bower: 1.7.9

gulp: [22:08:45] CLI version 1.2.2

yeoman: 1.8.5

Docker version 1.12.1, build 6f9534c

docker-compose version 1.8.0, build f3628c7

pascalgrimaud commented 7 years ago

@davidweianibone : it's because there is no microserviceName in all of your JSON file

1) Can you add this in your AniBoneMcrServic/.jhipster/Business.json :

  ],
  "changelogDate": "20161015161323",
  "dto": "mapstruct",
  "pagination": "no",
  "service": "no",
  "entityTableName": "business",
  "microserviceName": "AniBoneMcrServic"
}

Then, retry: yo jhipster:entity Business on your gateway

2) now, we need to know how did you create all of JSON ?

davidweianibone commented 7 years ago

I have created them using UMLDesigner and jhipster-uml.

Did I missed anything, so the microserviceName was not created ?

pascalgrimaud commented 7 years ago

Here is the related docs https://jhipster.github.io/jdl/#microserviceoptions Probably: microservice * with AniBoneMcrServic

pascalgrimaud commented 7 years ago

Just made some tests on my side, everything is OK. I'm pretty sure you miss this microservice name, that's why you can't generate entities from microservice, in your gateway, So I'm closing this

davidweianibone commented 7 years ago

I have added the line and still getting same error .jhipster/Business.json not found in /Users/david/git/AniBoneMcrServic/

{ "fluentMethods": true, "relationships": [ { "relationshipType": "one-to-one", "relationshipValidateRules": "required", "relationshipName": "addresss", "otherEntityName": "address", "otherEntityField": "id", "ownerSide": true, "otherEntityRelationshipName": "business" }, { "relationshipType": "one-to-many", "relationshipValidateRules": "required", "relationshipName": "ranks", "otherEntityName": "rank", "otherEntityRelationshipName": "business" }, { "relationshipType": "one-to-many", "relationshipValidateRules": "required", "relationshipName": "regions", "otherEntityName": "region", "otherEntityRelationshipName": "business" }, { "relationshipType": "one-to-many", "relationshipValidateRules": "required", "relationshipName": "abDocs", "otherEntityName": "doc", "otherEntityRelationshipName": "business" }, { "relationshipType": "one-to-one", "relationshipValidateRules": "required", "relationshipName": "abUsers", "otherEntityName": "abUser", "otherEntityField": "id", "ownerSide": true, "otherEntityRelationshipName": "business" }, { "relationshipName": "personalZone", "otherEntityName": "personalZone", "relationshipType": "many-to-one", "otherEntityField": "id" }, { "relationshipName": "businessCategory", "otherEntityName": "businessCategory", "relationshipType": "many-to-one", "otherEntityField": "id" } ], "fields": [ { "fieldName": "name", "fieldType": "String" }, { "fieldName": "workPhone", "fieldType": "String" }, { "fieldName": "fax", "fieldType": "String" }, { "fieldName": "workMail", "fieldType": "String" }, { "fieldName": "siteUrl", "fieldType": "String" }, { "fieldName": "description", "fieldType": "String" } ], "changelogDate": "20161015161323", "dto": "mapstruct", "pagination": "no", "service": "no", "entityTableName": "business", "microserviceName": "AniBoneMcrServic" }

pascalgrimaud commented 7 years ago

Maybe I'm doing wrong in my test, I name my project AniBoneMcrServic instead of AniBoneMcrService -> is there a missing e ?

davidweianibone commented 7 years ago

Yap! This did the trick :) Thank a lot!

Not sure tho were I was suppose to set the: microservice * with AniBoneMcrServic Inside the UML file ?

pascalgrimaud commented 7 years ago

microservice * with AniBoneMcrService need to be set in the jdl file: https://jhipster.github.io/jdl-studio/

davidweianibone commented 7 years ago

But I don't have a JDL file :) I used UMLDesigner and have only UML

davidweianibone commented 7 years ago

I mean, where did I needed to add this line so all the json files in .jhipster folder to be created properly

pascalgrimaud commented 7 years ago

Oh I see, I have no idea how it works with the UML I ping @MathieuAA our JHipster UML expert

davidweianibone commented 7 years ago

Great! Many thanks again :)

pascalgrimaud commented 7 years ago

I think it's already done. Have a look:

davidweianibone commented 7 years ago

I see.. I will ask him if he implemented this fix. It seems like it wasn't