Combined primary key,How to do?
We don't support it right now, to see the progress of this issue #1129
But one workaround is you can use a String
field as the PrimaryKey
and combine multi keys together into a string.
Closing this issue as it is an duplicate of #1129. Follow #1129 for updates on this issue.
How can I combine multi keys if my object is creating through webservice?
Gson creating realm object automatically.
Most helpful comment
How can I combine multi keys if my object is creating through webservice?
Gson creating realm object automatically.