{"action":"closed","issue":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/8764","repository_url":"https://api.github.com/repos/jhipster/generator-jhipster","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/8764/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/8764/comments","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/8764/events","html_url":"https://github.com/jhipster/generator-jhipster/issues/8764","id":377678545,"node_id":"MDU6SXNzdWUzNzc2Nzg1NDU=","number":8764,"title":"Compilation error of Gateway project when I generated Full microservice stack using import-jdl ","user":{"login":"yorkwu1977","id":12947373,"node_id":"MDQ6VXNlcjEyOTQ3Mzcz","avatar_url":"https://avatars0.githubusercontent.com/u/12947373?v=4","gravatar_id":"","url":"https://api.github.com/users/yorkwu1977","html_url":"https://github.com/yorkwu1977","followers_url":"https://api.github.com/users/yorkwu1977/followers","following_url":"https://api.github.com/users/yorkwu1977/following{/other_user}","gists_url":"https://api.github.com/users/yorkwu1977/gists{/gist_id}","starred_url":"https://api.github.com/users/yorkwu1977/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yorkwu1977/subscriptions","organizations_url":"https://api.github.com/users/yorkwu1977/orgs","repos_url":"https://api.github.com/users/yorkwu1977/repos","events_url":"https://api.github.com/users/yorkwu1977/events{/privacy}","received_events_url":"https://api.github.com/users/yorkwu1977/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-06T03:32:05Z","updated_at":"2018-11-06T08:08:26Z","closed_at":"2018-11-06T08:08:26Z","author_association":"NONE","body":"<!--\r\n- Please follow the issue template below for bug reports.\r\n- If you have a support request rather than a bug, please use [Stack Overflow](http://stackoverflow.com/questions/tagged/jhipster) with the JHipster tag.\r\n- For bug reports it is mandatory to run the command `jhipster info` in your project's root folder, and paste the result here.\r\n- Tickets opened without any of these pieces of information will be **closed** without any explanation.\r\n-->\r\n\r\n##### **Overview of the issue**\r\n\r\nI generated microservice stack using ‘jhipster import-jdl appstack.jdl’,  but the gateway project had compile error.\r\n\r\n> error info:  The import org.hibernate.annotations cannot be resolved\r\n```\r\nimport org.hibernate.annotations.Cache; \r\nimport org.hibernate.annotations.CacheConcurrencyStrategy;\r\n```\r\n\r\n> error info: Id cannot be resolved to a type\r\n```\r\n    @Id\r\n    private Long id;\r\n```\r\n\r\n> error info: Return type for the method is missing\r\n``` \r\n    // jhipster-needle-entity-add-field - JHipster will add fields here, do not remove\r\n    public  getId() {\r\n        return id;\r\n    }\r\n```\r\n>  error info: Syntax error, insert \"... VariableDeclaratorId\" to complete FormalParameterList\r\n```\r\n    public void setId( id) {\r\n        this.id = id;\r\n    }\r\n```\r\n\r\n##### **Motivation for or Use Case**\r\n\r\n<!-- Explain why this is a bug for you -->\r\n\r\n##### **Reproduce the error**\r\n\r\n<!-- For bug reports, an unambiguous set of steps to reproduce the error -->\r\n\r\n##### **Related issues**\r\n\r\n<!-- Has a similar issue been reported before? Please search both closed & open issues -->\r\n\r\n##### **Suggest a Fix**\r\n\r\n<!-- If you can't fix the bug yourself, perhaps you can point to what might be\r\n  causing the problem (line of code or commit) -->\r\n\r\n##### **JHipster Version(s)**\r\n\r\n5.6.0\r\n\r\n##### **JHipster configuration**\r\n\r\n<!--\r\nTo provide all information we need, you should run `jhipster info` in the project root folder, and\r\ncopy/paste the result here.\r\nThe `.yo-rc.json` file generated in the root folder is mandatory for bug reports. This will help us to replicate the scenario.\r\nYou should remove any sensitive information like the rememberMe key or the jwtSecretKey key.\r\n-->\r\n\r\n##### **Entity configuration(s) `entityName.json` files generated in the `.jhipster` directory**\r\n\r\n```\r\napplication {\r\n  config {\r\n    baseName microservice1,\r\n    applicationType microservice,\r\n    authenticationType uaa,\r\n    packageName com.company.appstack.microservice,\r\n    serverPort 8081,\r\n    uaaBaseName \"uaa\",\r\n    databaseType sql,\r\n    devDatabaseType h2Disk,\r\n    prodDatabaseType mysql,\r\n    serviceDiscoveryType eureka,\r\n    buildTool maven\r\n  }\r\n  entities EntityA\r\n}\r\n\r\napplication {\r\n  config {\r\n    baseName microservice2,\r\n    applicationType microservice,\r\n    authenticationType uaa,\r\n    packageName com.company.appstack.microservice,\r\n    serverPort 8081,\r\n    uaaBaseName \"uaa\",\r\n    databaseType sql,\r\n    devDatabaseType h2Disk,\r\n    prodDatabaseType mysql,\r\n    serviceDiscoveryType eureka,\r\n    buildTool maven\r\n  }\r\n  entities EntityB\r\n}\r\napplication {\r\n  config {\r\n    baseName uaa,\r\n    applicationType uaa,\r\n    packageName com.company.appstack.uaa,\r\n    serverPort 9999,\r\n    authenticationType uaa,\r\n    uaaBaseName \"uaa\",\r\n    databaseType sql,\r\n    devDatabaseType h2Disk,\r\n    prodDatabaseType mysql,\r\n    serviceDiscoveryType eureka,\r\n    buildTool maven\r\n  }\r\n}\r\n\r\napplication {\r\n  config {\r\n    baseName gateway,\r\n    applicationType gateway,\r\n    authenticationType uaa,\r\n    packageName com.company.appstack.gateway,\r\n    serverPort 8080,\r\n    uaaBaseName \"uaa\",\r\n    databaseType no,\r\n    serviceDiscoveryType eureka,\r\n    buildTool maven\r\n  }\r\n  entities EntityA, EntityB\r\n}\r\n\r\nentity EntityA {\r\n    data1 String\r\n}\r\n\r\nentity EntityB {\r\n    data2 String\r\n}\r\n\r\ndto * with mapstruct\r\nservice * with serviceClass\r\n\r\n```\r\n\r\n##### **Browsers and Operating System**\r\n\r\n<!-- What OS are you on? is this a problem with all browsers or only IE8? -->\r\n\r\n-   [ ] Checking this box is mandatory (this is just to show you read everything)\r\n\r\n<!-- Love JHipster? Please consider supporting our collective:\r\n👉  https://opencollective.com/generator-jhipster/donate -->\r\n"}}
{"actor":{"display_login":"yorkwu1977"}}