{"action":"closed","issue":{"url":"https://api.github.com/repos/querydsl/querydsl/issues/1863","repository_url":"https://api.github.com/repos/querydsl/querydsl","labels_url":"https://api.github.com/repos/querydsl/querydsl/issues/1863/labels{/name}","comments_url":"https://api.github.com/repos/querydsl/querydsl/issues/1863/comments","events_url":"https://api.github.com/repos/querydsl/querydsl/issues/1863/events","html_url":"https://github.com/querydsl/querydsl/issues/1863","id":151709366,"number":1863,"title":"Doubts on Projection","user":{"login":"pradhakrishnan","id":1951508,"avatar_url":"https://avatars.githubusercontent.com/u/1951508?v=3","gravatar_id":"","url":"https://api.github.com/users/pradhakrishnan","html_url":"https://github.com/pradhakrishnan","followers_url":"https://api.github.com/users/pradhakrishnan/followers","following_url":"https://api.github.com/users/pradhakrishnan/following{/other_user}","gists_url":"https://api.github.com/users/pradhakrishnan/gists{/gist_id}","starred_url":"https://api.github.com/users/pradhakrishnan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pradhakrishnan/subscriptions","organizations_url":"https://api.github.com/users/pradhakrishnan/orgs","repos_url":"https://api.github.com/users/pradhakrishnan/repos","events_url":"https://api.github.com/users/pradhakrishnan/events{/privacy}","received_events_url":"https://api.github.com/users/pradhakrishnan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/querydsl/querydsl/labels/resolved","name":"resolved","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-28T18:17:50Z","updated_at":"2016-05-21T18:52:38Z","closed_at":"2016-05-21T18:52:38Z","body":"Hi,\r\n\r\nI have one doubt on using projection at onetomany relationship.\r\n\r\nFor e.g User.java\r\n\r\n```\r\npublic class User{\r\n\r\nprivate int userId;\r\nprivate String username;\r\nprivate String password;\r\nprivate List<Address> addresses;\r\n\r\n}\r\n\r\nAnd Address.java\r\npublic class Address{\r\n\r\nprivate int addressId;\r\nprivate int doorNo;\r\nprivate String streetname;\r\n\r\n}\r\n\r\nI want to return only doorNo from Address Object . Not sure how to add that in projections\r\n\r\nList<User> users = userRestRepository.findAll(\r\n                    Projections.bean(User.class, qUser.address),\r\n                    userPredicate, pageRequest).getContent();\r\n\r\nCan someone help me\r\n\r\nThanks\r\nPranesh\r\n\r\n"}}
{"actor":{"display_login":"timowest"}}