{"action":"created","issue":{"url":"https://api.github.com/repos/impetus-opensource/Kundera/issues/771","labels_url":"https://api.github.com/repos/impetus-opensource/Kundera/issues/771/labels{/name}","comments_url":"https://api.github.com/repos/impetus-opensource/Kundera/issues/771/comments","events_url":"https://api.github.com/repos/impetus-opensource/Kundera/issues/771/events","html_url":"https://github.com/impetus-opensource/Kundera/issues/771","id":99746725,"number":771,"title":"findAll Bug","user":{"login":"oswaldl","id":3353245,"avatar_url":"https://avatars.githubusercontent.com/u/3353245?v=3","gravatar_id":"","url":"https://api.github.com/users/oswaldl","html_url":"https://github.com/oswaldl","followers_url":"https://api.github.com/users/oswaldl/followers","following_url":"https://api.github.com/users/oswaldl/following{/other_user}","gists_url":"https://api.github.com/users/oswaldl/gists{/gist_id}","starred_url":"https://api.github.com/users/oswaldl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oswaldl/subscriptions","organizations_url":"https://api.github.com/users/oswaldl/orgs","repos_url":"https://api.github.com/users/oswaldl/repos","events_url":"https://api.github.com/users/oswaldl/events{/privacy}","received_events_url":"https://api.github.com/users/oswaldl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-08-07T23:22:29Z","updated_at":"2015-08-12T10:10:14Z","closed_at":null,"body":"i am using kundera **hbase** jpa client, and i have a class define like this:\r\n```\r\n@Entity \r\n@Table(name = \"Oswaldl\")\r\npublic class Oswaldl {\r\n\r\n    @Id\r\n    @GeneratedValue(strategy = GenerationType.TABLE)\r\n    private String id; \r\n\r\n    @Column(name=\"name\")\r\n    private String name; \r\n\r\n    @ElementCollection\r\n    @Column(name=\"friends\")\r\n    private List<String> friends=new ArrayList<String>();\r\n\r\n}\r\n```\r\n\r\nand i found array property **'friends'** is always empty when i use findAll method below:\r\n\r\nthis.entityManager.createQuery(String.format(\"select mb from %s mb\", \"Oswaldl\")).setMaxResults(Integer.MAX_VALUE).getResultList();\r\n\r\nStrange that when i use findById, it works!\r\n\r\nthis.entityManager.find(Oswaldl.class, \"a id\");\r\n"},"comment":{"url":"https://api.github.com/repos/impetus-opensource/Kundera/issues/comments/130248155","html_url":"https://github.com/impetus-opensource/Kundera/issues/771#issuecomment-130248155","issue_url":"https://api.github.com/repos/impetus-opensource/Kundera/issues/771","id":130248155,"user":{"login":"devender-yadav","id":8894359,"avatar_url":"https://avatars.githubusercontent.com/u/8894359?v=3","gravatar_id":"","url":"https://api.github.com/users/devender-yadav","html_url":"https://github.com/devender-yadav","followers_url":"https://api.github.com/users/devender-yadav/followers","following_url":"https://api.github.com/users/devender-yadav/following{/other_user}","gists_url":"https://api.github.com/users/devender-yadav/gists{/gist_id}","starred_url":"https://api.github.com/users/devender-yadav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devender-yadav/subscriptions","organizations_url":"https://api.github.com/users/devender-yadav/orgs","repos_url":"https://api.github.com/users/devender-yadav/repos","events_url":"https://api.github.com/users/devender-yadav/events{/privacy}","received_events_url":"https://api.github.com/users/devender-yadav/received_events","type":"User","site_admin":false},"created_at":"2015-08-12T10:10:14Z","updated_at":"2015-08-12T10:10:14Z","body":"For _pagination_\r\n\r\nAs far as pagination is concerned, Hbase does not support it natively. But Kundera lets you set upper limit for the number of records that need to be fetched . It can be done using `setMaxResults` property.You need to manage the records that you want to fetch via your code. You can do that by  greater than query  based on row key id.\r\n\r\nFor example you have want to fetch only 3 books (max) having id > 3, you can do it as follows:\r\n\r\n        String q = \"Select b from Book b where b.id  > 3\";\r\n        Query query = em.createQuery(q);\r\n        query.setMaxResults(3);     \r\n        List<Book> resultList = query.getResultList();"}}