I am new to Android. I am using follwing code to get a product object from an area.
ProductModel prodObj = realm.where(ProductModel.class).equalTo("product_id","12").findFirst();
How can I create a standalone copy of prodObj? I want to update some field value that should not affect the domain database. I do not want to set it manually using the seters method, because the model class contains too many fields. Is there an easy way to create a standalone copy of prodObj?
android realm
Harshal bhatt
source share