{"action":"created","issue":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/4470","repository_url":"https://api.github.com/repos/jhipster/generator-jhipster","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/4470/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/4470/comments","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/4470/events","html_url":"https://github.com/jhipster/generator-jhipster/pull/4470","id":189162181,"number":4470,"title":"eager load user authorities with JPA","user":{"login":"hdurix","id":9678039,"avatar_url":"https://avatars.githubusercontent.com/u/9678039?v=3","gravatar_id":"","url":"https://api.github.com/users/hdurix","html_url":"https://github.com/hdurix","followers_url":"https://api.github.com/users/hdurix/followers","following_url":"https://api.github.com/users/hdurix/following{/other_user}","gists_url":"https://api.github.com/users/hdurix/gists{/gist_id}","starred_url":"https://api.github.com/users/hdurix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hdurix/subscriptions","organizations_url":"https://api.github.com/users/hdurix/orgs","repos_url":"https://api.github.com/users/hdurix/repos","events_url":"https://api.github.com/users/hdurix/events{/privacy}","received_events_url":"https://api.github.com/users/hdurix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-14T16:43:03Z","updated_at":"2016-11-15T10:20:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/pulls/4470","html_url":"https://github.com/jhipster/generator-jhipster/pull/4470","diff_url":"https://github.com/jhipster/generator-jhipster/pull/4470.diff","patch_url":"https://github.com/jhipster/generator-jhipster/pull/4470.patch"},"body":"eager load authorities in user repository and stop using .size() in user service (only for sql databases).\r\n\r\nBetter version of this PR: https://github.com/jhipster/generator-jhipster/pull/4463\r\nIt seems more readable and it uses JPA API over Hibernate API."},"comment":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/comments/260603196","html_url":"https://github.com/jhipster/generator-jhipster/pull/4470#issuecomment-260603196","issue_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/4470","id":260603196,"user":{"login":"nkolosnjaji","id":18678333,"avatar_url":"https://avatars.githubusercontent.com/u/18678333?v=3","gravatar_id":"","url":"https://api.github.com/users/nkolosnjaji","html_url":"https://github.com/nkolosnjaji","followers_url":"https://api.github.com/users/nkolosnjaji/followers","following_url":"https://api.github.com/users/nkolosnjaji/following{/other_user}","gists_url":"https://api.github.com/users/nkolosnjaji/gists{/gist_id}","starred_url":"https://api.github.com/users/nkolosnjaji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkolosnjaji/subscriptions","organizations_url":"https://api.github.com/users/nkolosnjaji/orgs","repos_url":"https://api.github.com/users/nkolosnjaji/repos","events_url":"https://api.github.com/users/nkolosnjaji/events{/privacy}","received_events_url":"https://api.github.com/users/nkolosnjaji/received_events","type":"User","site_admin":false},"created_at":"2016-11-15T10:20:39Z","updated_at":"2016-11-15T10:20:39Z","body":"@hdurix you can use two methods like this:\r\n\r\n- findOneByLogin\r\n- findWithAuthoritiesByLogin\r\n\r\nbased [on](http://docs.spring.io/spring-data/jpa/docs/1.10.4.RELEASE/reference/html/#repositories.query-methods.query-creation) spring data parser will strip prefix find…By"}}
{"actor":{"display_login":"nkolosnjaji"}}