Realm compound key workaround by using complex object as primary key

755 Views Asked by At

I m thinking about a workaround for realms inability to check for duplicate compound keys on entities (no compound keys supported):

what about declaring a compound key class - and then declaring a primary key of that compound key class as field of the entity class ?

Can that be used to workaround the lack of compound key support ? Has anybody tried that ?

0

There are 0 best solutions below