{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/3190","repository_url":"https://api.github.com/repos/realm/realm-java","labels_url":"https://api.github.com/repos/realm/realm-java/issues/3190/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/3190/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/3190/events","html_url":"https://github.com/realm/realm-java/issues/3190","id":165973863,"number":3190,"title":" Android Realm relationShip return null","user":{"login":"tux-world","id":6617583,"avatar_url":"https://avatars.githubusercontent.com/u/6617583?v=3","gravatar_id":"","url":"https://api.github.com/users/tux-world","html_url":"https://github.com/tux-world","followers_url":"https://api.github.com/users/tux-world/followers","following_url":"https://api.github.com/users/tux-world/following{/other_user}","gists_url":"https://api.github.com/users/tux-world/gists{/gist_id}","starred_url":"https://api.github.com/users/tux-world/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tux-world/subscriptions","organizations_url":"https://api.github.com/users/tux-world/orgs","repos_url":"https://api.github.com/users/tux-world/repos","events_url":"https://api.github.com/users/tux-world/events{/privacy}","received_events_url":"https://api.github.com/users/tux-world/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-java/labels/T:Help","name":"T:Help","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2016-07-17T12:07:18Z","updated_at":"2016-07-17T17:56:06Z","closed_at":"2016-07-17T15:19:20Z","body":"I have a model class as RealmObject which called ProductsDetailInformation, in this model i have single field as\r\n\r\n```\r\nprivate RealmList<ProductSlideShowImages> slideShowImages;\r\n```\r\n\r\nwhich i want to get this product images from ProductSlideShowImages model, but my this test return ```[0]```, for example:\r\n\r\n```\r\nProductsDetailInformation = [\r\n    {id: 57f72549-53e1-4177-9e52-80b8421559b7}, \r\n    {marketId: bc76b7a5-3166-11e6-b8fe-ec9a74f8851a}, \r\n    {productId: bc76b7a5-3166-11e6-b8fe-ec9a74f8851a-123456}, \r\n    {weight: 10}, \r\n    {cost: 1000}, \r\n    {color: blue}, \r\n    {madeIn: china}, \r\n    {gender:}, \r\n    {sex:}, \r\n    {quality: low}, \r\n    {size: 42}, \r\n    {sizeModel: xxl}, \r\n    {count: 10}, \r\n    {rating: 2}, \r\n    {description: my description}, \r\n    {created_at: 2016 - 07 - 17}, \r\n    {updated_at: 2016 - 07 - 14}, \r\n    {slideShowImages: RealmList < ProductSlideShowImages > [0]}\r\n]\r\n```\r\n\r\nin both of them marketId and productId has same data.\r\n\r\nProductsDetailInformation class:\r\n\r\n```\r\npublic class ProductsDetailInformation extends RealmObject{\r\n    @PrimaryKey\r\n    private String id;\r\n    private String marketId;\r\n    private String productId;\r\n    private String weight;\r\n    private String cost;\r\n    private String color;\r\n    private String madeIn;\r\n    private String gender;\r\n    private String sex;\r\n    private String quality;\r\n    private String size;\r\n    private String sizeModel;\r\n    private String count; \r\n    private String rating;\r\n    private String description;\r\n    private String created_at;\r\n    private String updated_at;\r\n\r\n    /**\r\n     * RelationShip columns with ProductSlideShowImages table\r\n     */\r\n    private RealmList<ProductSlideShowImages> slideShowImages;\r\n\r\n    /*SETTER AND GETTER*/\r\n}\r\n```\r\n\r\nProductSlideShowImages class:\r\n\r\n```\r\npublic class ProductSlideShowImages extends RealmObject{\r\n    @PrimaryKey\r\n    private String id;\r\n    private String marketId;\r\n    private String productId;\r\n    private String imageFileName;\r\n    private String created_at;\r\n    private String updated_at;\r\n\r\n    /*SETTER AND GETTER*/\r\n}\r\n```\r\nGet result with query:\r\n```\r\nList<ProductsDetailInformation> productsDetails = \r\nrealm.where(ProductsDetailInformation.class).equalTo(\"marketId\",marketUUid).findAll();\r\n```\r\n\r\n```ProductSlideShowImages``` model and ```ProductsDetailInformation``` doesnt fill together, they are fill on difference place and time\r\n"},"comment":{"url":"https://api.github.com/repos/realm/realm-java/issues/comments/233194669","html_url":"https://github.com/realm/realm-java/issues/3190#issuecomment-233194669","issue_url":"https://api.github.com/repos/realm/realm-java/issues/3190","id":233194669,"user":{"login":"stk1m1","id":16395854,"avatar_url":"https://avatars.githubusercontent.com/u/16395854?v=3","gravatar_id":"","url":"https://api.github.com/users/stk1m1","html_url":"https://github.com/stk1m1","followers_url":"https://api.github.com/users/stk1m1/followers","following_url":"https://api.github.com/users/stk1m1/following{/other_user}","gists_url":"https://api.github.com/users/stk1m1/gists{/gist_id}","starred_url":"https://api.github.com/users/stk1m1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stk1m1/subscriptions","organizations_url":"https://api.github.com/users/stk1m1/orgs","repos_url":"https://api.github.com/users/stk1m1/repos","events_url":"https://api.github.com/users/stk1m1/events{/privacy}","received_events_url":"https://api.github.com/users/stk1m1/received_events","type":"User","site_admin":false},"created_at":"2016-07-17T17:56:06Z","updated_at":"2016-07-17T17:56:06Z","body":"@Zhuinden \r\n\r\nBy all means, I am not versed in law, especially those related to US industry. But let me lay down all I know. US industry bureau has this `Export Administration Regulations` that classifies everything and SQlite happens to belong to [**EAR99**](https://www.bis.doc.gov/index.php/licensing/commerce-control-list-classification/export-control-classification-number-eccn) (or so they claim to be).\r\n\r\n> After careful review of the Commerce Control List (CCL), we are convinced that the core public-domain SQLite source code is not described by any ECCN, hence the ECCN should be reported as EAR99. The above is true for the core public-domain SQLite.\r\n\r\nUnlike countries that are permitted for EAR99 items such as North Korea and Sudan, Iran has recently received [a special treatment](https://www.bis.doc.gov/index.php/policy-guidance/country-guidance/sanctioned-destinations/iran) that does not even bother to exempt EAR99 items.\r\n\r\nWe cannot allow Iranians use our hard-work most likely because Realm has encryption embedded. But there seem to be [more layers](https://www.treasury.gov/resource-center/sanctions/Programs/Pages/iran.aspx) added to this embargo toward the particular country.\r\n\r\n@tux-world \r\nI'm sorry to relay all these messages. If you want to know more about license, please email us to help@realm.io. Our in-house experts will take it from there."}}
{"actor":{"display_login":"stk1m1"}}