Realm compound key workaround by using complex object as primary key
<p>I m thinking about a workaround for realms inability to check for duplicate compound keys on entities (no compound keys supported): </p>

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

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