{"action":"opened","issue":{"url":"https://api.github.com/repos/redisson/redisson/issues/1128","repository_url":"https://api.github.com/repos/redisson/redisson","labels_url":"https://api.github.com/repos/redisson/redisson/issues/1128/labels{/name}","comments_url":"https://api.github.com/repos/redisson/redisson/issues/1128/comments","events_url":"https://api.github.com/repos/redisson/redisson/issues/1128/events","html_url":"https://github.com/redisson/redisson/issues/1128","id":271379407,"number":1128,"title":"Retrieving objects using non-@RId fields","user":{"login":"ashishshinde-quinnox","id":10770913,"avatar_url":"https://avatars1.githubusercontent.com/u/10770913?v=4","gravatar_id":"","url":"https://api.github.com/users/ashishshinde-quinnox","html_url":"https://github.com/ashishshinde-quinnox","followers_url":"https://api.github.com/users/ashishshinde-quinnox/followers","following_url":"https://api.github.com/users/ashishshinde-quinnox/following{/other_user}","gists_url":"https://api.github.com/users/ashishshinde-quinnox/gists{/gist_id}","starred_url":"https://api.github.com/users/ashishshinde-quinnox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashishshinde-quinnox/subscriptions","organizations_url":"https://api.github.com/users/ashishshinde-quinnox/orgs","repos_url":"https://api.github.com/users/ashishshinde-quinnox/repos","events_url":"https://api.github.com/users/ashishshinde-quinnox/events{/privacy}","received_events_url":"https://api.github.com/users/ashishshinde-quinnox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-06T07:16:33Z","updated_at":"2017-11-06T07:16:33Z","closed_at":null,"author_association":"NONE","body":"I have a Customer object as below\r\n\r\n```\r\n            @REntity\r\n            public class Customer {\r\n               @RId\r\n               private String guid;\r\n               private String name;\r\n \r\n               //Required getter-setter and constructors here...\r\n          }\r\n```\r\n\r\nI store this object in Redis using the **persist** method as below: \r\n\r\n```\r\n                Config config = new Config();\r\n\t\tconfig.useSingleServer().setAddress(\"redis://127.0.0.1:9000\");\r\n\t\tredissonClient = Redisson.create(config);\r\n\t\tRLiveObjectService service = redissonClient.getLiveObjectService();\r\n                service.persist(new Customer(\"1\", \"Tom\");\r\n```\r\n\r\nI can use the `service.get(Customer.class, \"1\") ` method to retrieve this object based on the guid we pass to it. However, I have following requirements:\r\n\r\n- retrieving Customer objects based on the name field, which is not @Rid\r\n- retrieving Customer objects based on combination of guid and name field.\r\n\r\nCan you point me to the right api for such requirement?\r\n\r\n\r\n"}}
{"actor":{"display_login":"ashishshinde-quinnox"}}