Goal
I am having few cases where I needed to exclude fields from Gson serialization, but I need them in my Realm database.
Expected Results
Previously I used transient keyword for such cases and it worked fine.
Actual Results
Right now I'm having java.lang.IllegalArgumentException: Field does not exist exception when trying to do a query by using field marked as transient.
I found out that this is happening because of behavior implemented in this issue #4279
Fields marked as transient are ignored even if I put @Required on them.
Version of Realm and tooling
Realm version(s): 5.0.0
Goal
I am having few cases where I needed to exclude fields from Gson serialization, but I need them in my Realm database.
Expected Results
Previously I used
transientkeyword for such cases and it worked fine.Actual Results
Right now I'm having
java.lang.IllegalArgumentException: Field does not existexception when trying to do a query by using field marked astransient.I found out that this is happening because of behavior implemented in this issue #4279
Fields marked as
transientare ignored even if I put@Requiredon them.Version of Realm and tooling
Realm version(s): 5.0.0