Realm-java: Combined primary key,How to do?

Created on 15 Jan 2016  Â·  3Comments  Â·  Source: realm/realm-java

Combined primary key,How to do?

Most helpful comment

How can I combine multi keys if my object is creating through webservice?
Gson creating realm object automatically.

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings