{"action":"created","issue":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/3175","repository_url":"https://api.github.com/repos/jhipster/generator-jhipster","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/3175/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/3175/comments","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/3175/events","html_url":"https://github.com/jhipster/generator-jhipster/issues/3175","id":141118641,"number":3175,"title":"EntityMapper should be invoked from EntityResource only even if EntityService is present","user":{"login":"lordlothar99","id":3019346,"avatar_url":"https://avatars.githubusercontent.com/u/3019346?v=3","gravatar_id":"","url":"https://api.github.com/users/lordlothar99","html_url":"https://github.com/lordlothar99","followers_url":"https://api.github.com/users/lordlothar99/followers","following_url":"https://api.github.com/users/lordlothar99/following{/other_user}","gists_url":"https://api.github.com/users/lordlothar99/gists{/gist_id}","starred_url":"https://api.github.com/users/lordlothar99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lordlothar99/subscriptions","organizations_url":"https://api.github.com/users/lordlothar99/orgs","repos_url":"https://api.github.com/users/lordlothar99/repos","events_url":"https://api.github.com/users/lordlothar99/events{/privacy}","received_events_url":"https://api.github.com/users/lordlothar99/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jhipster/generator-jhipster/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/jhipster/generator-jhipster/labels/in-progress","name":"in-progress","color":"0e8200"},{"url":"https://api.github.com/repos/jhipster/generator-jhipster/labels/ng2","name":"ng2","color":"fef2c0"},{"url":"https://api.github.com/repos/jhipster/generator-jhipster/labels/willdolater","name":"willdolater","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/milestones/79","html_url":"https://github.com/jhipster/generator-jhipster/milestones/Angular%202","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/milestones/79/labels","id":1833789,"number":79,"title":"Angular 2","description":"Milestone to track Angular2 related PR so that these are not tagged to patch releases in current 3.x stream","creator":{"login":"deepu105","id":1107223,"avatar_url":"https://avatars.githubusercontent.com/u/1107223?v=3","gravatar_id":"","url":"https://api.github.com/users/deepu105","html_url":"https://github.com/deepu105","followers_url":"https://api.github.com/users/deepu105/followers","following_url":"https://api.github.com/users/deepu105/following{/other_user}","gists_url":"https://api.github.com/users/deepu105/gists{/gist_id}","starred_url":"https://api.github.com/users/deepu105/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepu105/subscriptions","organizations_url":"https://api.github.com/users/deepu105/orgs","repos_url":"https://api.github.com/users/deepu105/repos","events_url":"https://api.github.com/users/deepu105/events{/privacy}","received_events_url":"https://api.github.com/users/deepu105/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":30,"state":"open","created_at":"2016-06-17T06:54:23Z","updated_at":"2016-07-29T14:52:47Z","due_on":null,"closed_at":null},"comments":57,"created_at":"2016-03-15T22:36:40Z","updated_at":"2016-08-02T15:40:26Z","closed_at":null,"body":"##### **Overview of the issue**\r\n\r\n[Enhancement] `EntityMapper` should be invoked from `EntityResource` only even if `EntityService` is present\r\n\r\n##### **Motivation for or Use Case** \r\n\r\nIn my point of view, `EntityService` shouldn't bother with DTO <-> Entity conversion, that's only `EntityResource` responsibility. `EntityService` should only see entities, and not make any reference to `rest` package\r\n\r\n##### **JHipster Version(s)** \r\n\r\n2.27.0\r\n\r\n##### **JHipster configuration, a `.yo-rc.json` file generated in the root folder** \r\n\r\nExample :\r\n```\r\n{\r\n  \"generator-jhipster\": {\r\n    \"applicationType\": \"monolith\",\r\n    \"baseName\": \"sampleDefaultFromScratch\",\r\n    \"packageName\": \"com.mycompany.myapp\",\r\n    \"packageFolder\": \"com/mycompany/myapp\",\r\n    \"authenticationType\": \"session\",\r\n    \"hibernateCache\": \"ehcache\",\r\n    \"clusteredHttpSession\": \"no\",\r\n    \"websocket\": \"no\",\r\n    \"databaseType\": \"sql\",\r\n    \"devDatabaseType\": \"h2Disk\",\r\n    \"prodDatabaseType\": \"mysql\",\r\n    \"searchEngine\": \"no\",\r\n    \"useSass\": false,\r\n    \"buildTool\": \"maven\",\r\n    \"enableTranslation\": true,\r\n    \"nativeLanguage\": \"en\",\r\n    \"languages\": [\"en\", \"fr\"],\r\n    \"enableSocialSignIn\": false,\r\n    \"rememberMeKey\": \"f19f0827c622eb9b81f5227a869ccd44932d78eb\",\r\n    \"testFrameworks\": [\r\n      \"gatling\"\r\n    ]\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```\r\n{\r\n    \"relationships\": [],\r\n    \"fields\": [\r\n        {\r\n            \"fieldName\": \"label\",\r\n            \"fieldType\": \"String\",\r\n            \"fieldValidateRules\": [\r\n                \"required\",\r\n                \"minlength\"\r\n            ],\r\n            \"fieldValidateRulesMinlength\": \"3\"\r\n        }\r\n    ],\r\n    \"changelogDate\": \"20150805124936\",\r\n    \"dto\": \"mapstruct\",\r\n    \"pagination\": \"pagination\",\r\n    \"service\": \"serviceClass\"\r\n}\r\n```\r\n\r\n##### **Suggest a Fix** \r\n\r\nI can submit a PR for that"},"comment":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/comments/236944945","html_url":"https://github.com/jhipster/generator-jhipster/issues/3175#issuecomment-236944945","issue_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/3175","id":236944945,"user":{"login":"jdubois","id":316835,"avatar_url":"https://avatars.githubusercontent.com/u/316835?v=3","gravatar_id":"","url":"https://api.github.com/users/jdubois","html_url":"https://github.com/jdubois","followers_url":"https://api.github.com/users/jdubois/followers","following_url":"https://api.github.com/users/jdubois/following{/other_user}","gists_url":"https://api.github.com/users/jdubois/gists{/gist_id}","starred_url":"https://api.github.com/users/jdubois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdubois/subscriptions","organizations_url":"https://api.github.com/users/jdubois/orgs","repos_url":"https://api.github.com/users/jdubois/repos","events_url":"https://api.github.com/users/jdubois/events{/privacy}","received_events_url":"https://api.github.com/users/jdubois/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T15:40:26Z","updated_at":"2016-08-02T15:40:26Z","body":"@deepu105 I would like to work on this, have you already started? Can I help you?"}}
{"actor":{"display_login":"jdubois"}}