{"action":"created","issue":{"url":"https://api.github.com/repos/impetus-opensource/Kundera/issues/761","labels_url":"https://api.github.com/repos/impetus-opensource/Kundera/issues/761/labels{/name}","comments_url":"https://api.github.com/repos/impetus-opensource/Kundera/issues/761/comments","events_url":"https://api.github.com/repos/impetus-opensource/Kundera/issues/761/events","html_url":"https://github.com/impetus-opensource/Kundera/issues/761","id":93179982,"number":761,"title":"nativequery result do not map to entities when entity properties refers a associated entity","user":{"login":"JoshiManjila","id":7875260,"avatar_url":"https://avatars.githubusercontent.com/u/7875260?v=3","gravatar_id":"","url":"https://api.github.com/users/JoshiManjila","html_url":"https://github.com/JoshiManjila","followers_url":"https://api.github.com/users/JoshiManjila/followers","following_url":"https://api.github.com/users/JoshiManjila/following{/other_user}","gists_url":"https://api.github.com/users/JoshiManjila/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshiManjila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshiManjila/subscriptions","organizations_url":"https://api.github.com/users/JoshiManjila/orgs","repos_url":"https://api.github.com/users/JoshiManjila/repos","events_url":"https://api.github.com/users/JoshiManjila/events{/privacy}","received_events_url":"https://api.github.com/users/JoshiManjila/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/impetus-opensource/Kundera/labels/Fixed","name":"Fixed","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-07-06T03:38:01Z","updated_at":"2015-08-01T06:01:51Z","closed_at":null,"body":"Dear sir,\r\n\r\nWhen we tested cassandra native queries using kundera  In our testing scenario, we need to convert the query result to Vaccation.class., one entity.\r\n\r\nBut the Vaccation class has property doctor which refers another entity (Many to One relation). In such cases, kundera em.resultList() returns Vacation List but with doctor  as null.\r\n\r\n List<Vacation> vacations =em.createNativeQuery(query, Vacation.class);\r\n\r\nvacation.doctor is null\r\n\r\nWhy cant make kundera JPA create a doctor reference while the mapping to vaccation.class  going on.\r\n\r\nEven if it don't support join query.,as doctor id returns in the native query refers to doctor object. and    if no fetching of doctor is be needed. then shouldn't it possible to return a list with  entity reference?\r\n\r\n\r\nPlease send your earliest replay.\r\n\r\nThanking you\r\n\r\nJoshi.\r\n"},"comment":{"url":"https://api.github.com/repos/impetus-opensource/Kundera/issues/comments/126868663","html_url":"https://github.com/impetus-opensource/Kundera/issues/761#issuecomment-126868663","issue_url":"https://api.github.com/repos/impetus-opensource/Kundera/issues/761","id":126868663,"user":{"login":"JoshiManjila","id":7875260,"avatar_url":"https://avatars.githubusercontent.com/u/7875260?v=3","gravatar_id":"","url":"https://api.github.com/users/JoshiManjila","html_url":"https://github.com/JoshiManjila","followers_url":"https://api.github.com/users/JoshiManjila/followers","following_url":"https://api.github.com/users/JoshiManjila/following{/other_user}","gists_url":"https://api.github.com/users/JoshiManjila/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshiManjila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshiManjila/subscriptions","organizations_url":"https://api.github.com/users/JoshiManjila/orgs","repos_url":"https://api.github.com/users/JoshiManjila/repos","events_url":"https://api.github.com/users/JoshiManjila/events{/privacy}","received_events_url":"https://api.github.com/users/JoshiManjila/received_events","type":"User","site_admin":false},"created_at":"2015-08-01T06:01:51Z","updated_at":"2015-08-01T06:01:51Z","body":"Dear Chhavi,\r\n\r\nWe tested here it with kundera trunk there also we are getting the same.\r\n\r\nJoshi"}}