Closed ayushishah-easternts closed 7 years ago
Hard to say without more information.
LogClass.e("JSON", jObjProduct.toString()); realm.createOrUpdateObjectFromJson(ProductData.class, jObjProduct);
ProductData productDatas = realm.where(ProductData.class)
.equalTo(ProductData.Cols.PRODUCT_ID, productId)
.findFirst();
Using above piece of code to insert data in realm. In which array size is greater than 1
@cmelchior : The json would be coming from server side , hence confirming the array size should be greater than zero
Arrays of Primitives are not supported yet by our JSON methods as mentioned in the changelog: https://github.com/realm/realm-java/blob/master/CHANGELOG.md#400-2017-10-16
It is being added in this PR though https://github.com/realm/realm-java/pull/5505, so should be in the next minor release.
@cmelchior Thanks for the prompt response . By when can we expect the minor release ? Should we use workaround as we used for earlier realm version or wait for the release ?
Hopefully, we can release next week, but it might change. So that will depend on your timeline. Alternative you can clone that branch and build a version of Realm yourself to include.
this will be released as part of 4.2.0
. See #5536
Hi,
I am using realm 4.1.1
When trying to use Realmlist in RealmObject we aren't able to retrieve it back
RealmObject data members are as below:
Here when I am trying to do
productDatas.getImages().size()
the size is always coming zeroPlease let me know where am I going wrong