I'm having the following issue with GreenDao and don't know how to solve it. I have some entity - lets say USER, that has 4 potentials param:FIRST_NAME,LAST_NAME,AGE,LOCAL_VAL and when I'm getting a USER from the server it has only 3 params: FIRST_NAME,LAST_NAME,AGE. Now, I'm guessing that when I'm getting user from the server and using InsertOrReplace then this user(with the same Id) get overrides and the value in LOCAL_VAL sets to 0 because the server doesn't return it.
a naive solution is to get the USER entity from the database with his ID and to check the value of LOCAL_VAL, if it's not equals 0 then we save it again in the new USER from the server. This solution isn't good because it contains to many database access.
Is it possible not to override all the entities values?
( In my scenario this VAL contains Id of different entity from 1-N relation)