{"action":"created","issue":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/4232","repository_url":"https://api.github.com/repos/jhipster/generator-jhipster","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/4232/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/4232/comments","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/4232/events","html_url":"https://github.com/jhipster/generator-jhipster/issues/4232","id":179968722,"number":4232,"title":"JDL unable to generate angular suffix","user":{"login":"sanjayrawat1","id":8242837,"avatar_url":"https://avatars.githubusercontent.com/u/8242837?v=3","gravatar_id":"","url":"https://api.github.com/users/sanjayrawat1","html_url":"https://github.com/sanjayrawat1","followers_url":"https://api.github.com/users/sanjayrawat1/followers","following_url":"https://api.github.com/users/sanjayrawat1/following{/other_user}","gists_url":"https://api.github.com/users/sanjayrawat1/gists{/gist_id}","starred_url":"https://api.github.com/users/sanjayrawat1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanjayrawat1/subscriptions","organizations_url":"https://api.github.com/users/sanjayrawat1/orgs","repos_url":"https://api.github.com/users/sanjayrawat1/repos","events_url":"https://api.github.com/users/sanjayrawat1/events{/privacy}","received_events_url":"https://api.github.com/users/sanjayrawat1/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jhipster/generator-jhipster/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/jhipster/generator-jhipster/labels/JDL","name":"JDL","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-09-29T07:06:46Z","updated_at":"2016-10-08T08:47:39Z","closed_at":null,"body":"<!--\r\n> Please follow the issue template below for bug reports and queries.\r\n> Bug reports or queries opened without any of these info will be **closed** without any explanation.\r\n> For feature requests, label the title with [FEATURE] and explain your use case and ideas clearly below, you can remove sections which are not relevant.\r\n> For bug reports your `.yo-rc.json` file is mandatory else we will close the issue.\r\n> You can run `yo jhipster:info` in your project folder to get most of the required info\r\n-->\r\n\r\n##### **Overview of the issue**\r\n\r\n<!-- explain the issue or feature request, if an error is being thrown a stack trace helps -->\r\nWhen generating entities with **angularSuffix** option via import-jdl, the generated entities not including angular suffix. When I generate same entity via **yo jhipster:entity X --angular-suffix mySuperEntity**  command, entities are including angular suffix.\r\n\r\nSample JDL file:-\r\n**jhipster-jdl.jh**\r\n```\r\nentity X\r\n\r\nangularSuffix * with mySuperEntity\r\n```\r\n\r\n##### **Motivation for or Use Case**\r\n\r\n<!-- explain why this is a bug for you -->\r\nWhen I am generating entities via import-jdl then it is creating json file as:-\r\n**X.json**\r\n```\r\n{\r\n    \"fluentMethods\": true,\r\n    \"relationships\": [],\r\n    \"fields\": [],\r\n    \"changelogDate\": \"20160929055517\",\r\n    \"entityTableName\": \"x\",\r\n    \"dto\": \"no\",\r\n    \"pagination\": \"no\",\r\n    \"service\": \"no\",\r\n    \"angularSuffix\": \"mySuperEntity\"\r\n}\r\n```\r\n\r\nBut when I create same entity using command **yo jhipster:entity X --angular-suffix mySuperEntity** then it is creating json file as:-\r\n**X.json**\r\n```\r\n{\r\n    \"fluentMethods\": true,\r\n    \"relationships\": [],\r\n    \"fields\": [],\r\n    \"changelogDate\": \"20160929055830\",\r\n    \"dto\": \"no\",\r\n    \"service\": \"no\",\r\n    \"entityTableName\": \"x\",\r\n    \"pagination\": \"no\",\r\n    \"angularJSSuffix\": \"-mySuperEntity\"\r\n}\r\n```\r\nNow from the above json file we can see the difference(1st approach using **angularSuffix** while 2nd approach using **angularJSSuffix** in json file), and the second approach (i.e **yo jhipster:entity X --angular-suffix mySuperEntity** command) is working fine.\r\n\r\n\r\n##### **Reproduce the error**\r\n\r\n<!-- an unambiguous set of steps to reproduce the error. If you have a JavaScript error, maybe you can provide a live example with\r\n  [JSFiddle](http://jsfiddle.net/)? -->\r\nUse above mention jdl file using **yo jhipster:import-jdl jhipster-jdl.jh** command or create entity using **yo jhipster:entity X --angular-suffix mySuperEntity** command.\r\n\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\nAs we can see from generated json files the attribute is different in both case(angularSuffix and angularJSSuffix respectively). If angularJSSuffix is the right way then when json files are generated using import-jdl generate json with correct syntax.\r\n\r\n##### **JHipster Version(s)**\r\n\r\n<!-- to provide all information we need, you can use: yo jhipster:info -->\r\n<!-- which version of Jhipster are you using, is it a regression? -->\r\nv3.8.0\r\n\r\n##### **JHipster configuration, a `.yo-rc.json` file generated in the root folder**\r\n\r\n<!-- This is mandatory for bug reports. This will help us to replicate the scenario, you can remove the rememberMe key. -->\r\n```\r\n{\r\n  \"generator-jhipster\": {\r\n    \"jhipsterVersion\": \"3.8.0\",\r\n    \"baseName\": \"testApp\",\r\n    \"packageName\": \"com.mycompany.myapp\",\r\n    \"packageFolder\": \"com/mycompany/myapp\",\r\n    \"serverPort\": \"8080\",\r\n    \"authenticationType\": \"jwt\",\r\n    \"hibernateCache\": \"ehcache\",\r\n    \"clusteredHttpSession\": false,\r\n    \"websocket\": false,\r\n    \"databaseType\": \"sql\",\r\n    \"devDatabaseType\": \"h2Memory\",\r\n    \"prodDatabaseType\": \"mysql\",\r\n    \"searchEngine\": false,\r\n    \"messageBroker\": false,\r\n    \"buildTool\": \"maven\",\r\n    \"enableSocialSignIn\": false,\r\n    \"jwtSecretKey\": \"1-1-1-1-1\",\r\n    \"useSass\": false,\r\n    \"applicationType\": \"monolith\",\r\n    \"testFrameworks\": [],\r\n    \"jhiPrefix\": \"jhi\",\r\n    \"enableTranslation\": false\r\n  }\r\n}\r\n```\r\n\r\n##### **Entity configuration(s) `entityName.json` files generated in the `.jhipster` directory**\r\n\r\n<!-- - if the error is during an entity creation or associated with a specific entity. If you are using JDL share that as well -->\r\nJson files are specified above.\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\nOS: Fedora release 23 (Twenty Three)\r\n"},"comment":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/comments/252412373","html_url":"https://github.com/jhipster/generator-jhipster/issues/4232#issuecomment-252412373","issue_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/4232","id":252412373,"user":{"login":"MathieuAA","id":2753381,"avatar_url":"https://avatars.githubusercontent.com/u/2753381?v=3","gravatar_id":"","url":"https://api.github.com/users/MathieuAA","html_url":"https://github.com/MathieuAA","followers_url":"https://api.github.com/users/MathieuAA/followers","following_url":"https://api.github.com/users/MathieuAA/following{/other_user}","gists_url":"https://api.github.com/users/MathieuAA/gists{/gist_id}","starred_url":"https://api.github.com/users/MathieuAA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MathieuAA/subscriptions","organizations_url":"https://api.github.com/users/MathieuAA/orgs","repos_url":"https://api.github.com/users/MathieuAA/repos","events_url":"https://api.github.com/users/MathieuAA/events{/privacy}","received_events_url":"https://api.github.com/users/MathieuAA/received_events","type":"User","site_admin":false},"created_at":"2016-10-08T08:47:39Z","updated_at":"2016-10-08T08:47:39Z","body":"@deepu105 if you think it will take too long to get it done, tell me. I'll release ASAP."}}
{"actor":{"display_login":"MathieuAA"}}